Zaylyaev / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

Varying variable count warning #445

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use a shader with more than 32 float varyings on a GLSL 1.0 only GPU

What is the expected output? What do you see instead?
It will fail due to the GLSL 1.0 limit for varyings being 32 floats

The best way to fix the issue, is to add a warning if it is detected that a 
shader is using more varyings than the limit (for GLSL 1.0 only shaders).

Original issue reported on code.google.com by ShadowIs...@gmail.com on 1 Jan 2012 at 8:27

GoogleCodeExporter commented 8 years ago
There's no way to find out how many varyings are used in a shader so at the 
moment this issue cannot be fixed. We may need to use utilities such as CG 
compiler or GPU Shader Analyser to find out how many varyings are used

Original comment by ShadowIs...@gmail.com on 2 Feb 2012 at 2:24