forked from mirrors/0ad
Fixes particle shader compilation
The problem was only in case of USE_DESCRIPTOR_INDEXING. Because it adds additional data for textures to the end of draw uniforms. Fixes #8780
This commit is contained in:
@@ -8,12 +8,12 @@ BEGIN_DRAW_TEXTURES
|
|||||||
END_DRAW_TEXTURES
|
END_DRAW_TEXTURES
|
||||||
|
|
||||||
BEGIN_DRAW_UNIFORMS
|
BEGIN_DRAW_UNIFORMS
|
||||||
UNIFORM(mat4, modelViewMatrix)
|
|
||||||
UNIFORM(mat4, spaceTransform)
|
UNIFORM(mat4, spaceTransform)
|
||||||
END_DRAW_UNIFORMS
|
END_DRAW_UNIFORMS
|
||||||
|
|
||||||
BEGIN_MATERIAL_UNIFORMS
|
BEGIN_MATERIAL_UNIFORMS
|
||||||
UNIFORM(mat4, transform)
|
UNIFORM(mat4, transform)
|
||||||
|
UNIFORM(mat4, modelViewMatrix)
|
||||||
UNIFORM(vec3, sunColor)
|
UNIFORM(vec3, sunColor)
|
||||||
UNIFORM(vec3, fogColor)
|
UNIFORM(vec3, fogColor)
|
||||||
UNIFORM(vec2, fogParams)
|
UNIFORM(vec2, fogParams)
|
||||||
|
|||||||
Reference in New Issue
Block a user