All Questions
Tagged with opengl game-engine
18
questions
17
votes
0
answers
2k
views
Per-Vertex lighting in GLSL?
How can I achieve per-vertex lighting (like in single/multi-texture shading) in GLSL with all of the other GLSL features (like buffer shadows, texture layers, etc.)? Bonus points if it can be done in ...
4
votes
1
answer
2k
views
Can I access the render screen size in a custom filter 2D in the game engine?
I am using Blender Game Engines Filter 2D to make a post effect with GLSL.
In an fragment shader applied on the frame buffer, I want to access the size in pixels of that buffer in GLSL.
...
7
votes
1
answer
3k
views
Draw geometry on screen using BGL module
I am trying to use the bgl module to draw triangles on top of the Blender interface. My understanding is that glBegin/glEnd are deprecated, and vertex array or display list or VBO should be used ...