Re: Queary in watermesh.cpp

"res" <[email protected]>
Newsgroups gmane.comp.graphics.crystalspace.devel
Message-ID <[email protected]>
> "amps" is the name of a shader variable (Vector3).
> 
> "murkiness" is a shader variables as well (float), see
> CS/data/shader/water/water.xml for definition in shader.

Shaders can both use and provide shader variables; the “provided” value is used as a default value in case it's not overridden by e.g. the material.

So in this particular case, since murkiness is not set from code or elsewhere, the default value from the shader file is used (0.3 in this case).

You can see the “precedence” of shader vars here:
http://crystalspace3d.org/docs/online/manual/Shader-System-Overview.html#9

-f.r.
-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                                  
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Crystal-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-develop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.