diff options
Diffstat (limited to 'gfx/gl/shaders/commonShadowPoint.gs')
-rw-r--r-- | gfx/gl/shaders/commonShadowPoint.gs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx/gl/shaders/commonShadowPoint.gs b/gfx/gl/shaders/commonShadowPoint.gs index b008f29..b99bd20 100644 --- a/gfx/gl/shaders/commonShadowPoint.gs +++ b/gfx/gl/shaders/commonShadowPoint.gs @@ -7,6 +7,8 @@ in vec4 vworldPos[]; layout(triangles) in; layout(triangle_strip, max_vertices = 12) out; +ifdef(`TEXTURES', in vec2 vtexCoord[]; out vec2 texCoord;); + void main() { @@ -15,6 +17,7 @@ main() gl_Position = viewProjection[vp] * vworldPos[v]; gl_Position.z = max(gl_Position.z, -1); gl_Layer = vp; + ifdef(`TEXTURES', texCoord = vtexCoord[v];); EmitVertex(); } EndPrimitive(); |