Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/shaders/gpu_shader_2D_image_rect_vert.glsl
| /** | /** | ||||
| * Simple shader that just draw one icon at the specified location | * Simple shader that just draw one icon at the specified location | ||||
| * does not need any vertex input (producing less call to immBegin/End) | * does not need any vertex input (producing less call to immBegin/End) | ||||
| **/ | */ | ||||
| uniform mat4 ModelViewProjectionMatrix; | uniform mat4 ModelViewProjectionMatrix; | ||||
| uniform vec4 rect_icon; | uniform vec4 rect_icon; | ||||
| uniform vec4 rect_geom; | uniform vec4 rect_geom; | ||||
| out vec2 texCoord_interp; | out vec2 texCoord_interp; | ||||
| void main() | void main() | ||||
| Show All 23 Lines | |||||