Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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 ...
Nero1024's user avatar
  • 643
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. ...
lubosz's user avatar
  • 231
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 ...
Mike Pan's user avatar
  • 11.9k

15 30 50 per page
1
2