Fixed NVIDIA renderering errors, use 'flat in/out int integerValue' instead of 'in/out float integerValue'

This commit is contained in:
2020-03-23 18:45:25 -05:00
parent cb7b3d4883
commit 2ad1385fb4
3 changed files with 12 additions and 10 deletions

View File

@@ -25,7 +25,7 @@ class IMICFPS
shader.uniform_vec3("lights[#{i}].specular", light.specular)
end
shader.uniform_float("totalLights", lights.size)
shader.uniform_integer("totalLights", lights.size)
entities.each do |entity|
next unless entity.visible && entity.renderable