mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 16:20:13 +01:00
progs/glsl: Fix vsraytrace GLSL compilation error.
Fixes the following GLSL error on Mac OS X. '=' : assigning non-constant to 'const 3-component vector of float'
This commit is contained in:
parent
3bccb5447b
commit
3fcfd69fec
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ static const char* vsSource =
|
|||
"void main() \n"
|
||||
"{ \n"
|
||||
" const vec3 cameraPos = vec3(0,0,3); \n"
|
||||
" const vec3 rayDir = normalize(vec3(gl_Vertex.x, gl_Vertex.y, -1.0) * rot);\n"
|
||||
" vec3 rayDir = normalize(vec3(gl_Vertex.x, gl_Vertex.y, -1.0) * rot);\n"
|
||||
" Ray ray = Ray(cameraPos, rayDir); \n"
|
||||
" gl_Position = gl_Vertex; \n"
|
||||
" gl_FrontColor = trace1(ray); \n"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue