15 years, 11 months ago
Highlights
I think you search the problem somewhere else.position = BoneWeights[0] * BoneMatrices[25] * gl_Vertex;is ok, butint index = 25;position = BoneWeights[0] * BoneMatrices[index] *…
15 years, 11 months ago
15 years, 11 months ago
Hello,I have a problem with array indexing by variable in GLSL.Here is some code that's working properly:if(int(BoneIndices[0]) == 25){ position = BoneWeights[0] * BoneMatrices[…
15 years, 11 months ago
Shader Info Log: Vertex shader failed to compile with the following errors:ERROR: 0:38: error(#166) Integer expression required []ERROR: error(#273) 1 compilation errors. No cod…
15 years, 11 months ago
15 years, 11 months ago
Latest Activity
See all in DiscussionsI think you search the problem somewhere else.position = BoneWeights[0] * BoneMatrices[25] * gl_Vertex;is ok, butint index = 25;position = …
15 years, 11 months ago
Shader Info Log: Vertex shader failed to compile with the following errors:ERROR: 0:38: error(#166) Integer expression required []ERROR: error(#273) 1 …
15 years, 11 months ago
Then we have an error during compilation.BoneIndices is an array of floats. We've tried with array of uints. Same result
15 years, 11 months ago