1
0
Fork 0

Speculative fix for shader cast issue on Mac.

This commit is contained in:
Stuart Buchanan 2013-05-31 19:50:57 +01:00
parent 7b277810a8
commit 08243eb083
4 changed files with 9 additions and 9 deletions

View file

@ -132,7 +132,7 @@
</uniform> </uniform>
<uniform> <uniform>
<name>season</name> <name>season</name>
<type>int</type> <type>float</type>
<value><use>season</use></value> <value><use>season</use></value>
</uniform> </uniform>
<uniform> <uniform>
@ -254,7 +254,7 @@
</uniform> </uniform>
<uniform> <uniform>
<name>season</name> <name>season</name>
<type>int</type> <type>float</type>
<value><use>season</use></value> <value><use>season</use></value>
</uniform> </uniform>
<uniform> <uniform>
@ -310,7 +310,7 @@
</program> </program>
<uniform> <uniform>
<name>season</name> <name>season</name>
<type>int</type> <type>float</type>
<value><use>season</use></value> <value><use>season</use></value>
</uniform> </uniform>
<uniform> <uniform>
@ -412,7 +412,7 @@
</uniform> </uniform>
<uniform> <uniform>
<name>season</name> <name>season</name>
<type>int</type> <type>float</type>
<value><use>season</use></value> <value><use>season</use></value>
</uniform> </uniform>
<!-- END fog include --> <!-- END fog include -->
@ -506,7 +506,7 @@
</uniform> </uniform>
<uniform> <uniform>
<name>season</name> <name>season</name>
<type>int</type> <type>float</type>
<value><use>season</use></value> <value><use>season</use></value>
</uniform> </uniform>
<!-- END fog include --> <!-- END fog include -->
@ -598,7 +598,7 @@
</uniform> </uniform>
<uniform> <uniform>
<name>season</name> <name>season</name>
<type>int</type> <type>float</type>
<value><use>season</use></value> <value><use>season</use></value>
</uniform> </uniform>
</pass> </pass>

View file

@ -5,7 +5,7 @@
// color - xyz of tree quad origin, replicated 4 times. // color - xyz of tree quad origin, replicated 4 times.
#version 120 #version 120
uniform int season; uniform float season;
void main() { void main() {

View file

@ -38,7 +38,7 @@ uniform float overcast;
//uniform float scattering; //uniform float scattering;
uniform float ground_scattering; uniform float ground_scattering;
uniform float snow_level; uniform float snow_level;
uniform int season; uniform float season;
float earthShade; float earthShade;
float mie_angle; float mie_angle;

View file

@ -12,7 +12,7 @@
// //
// void fog_Func(int type); // void fog_Func(int type);
// ///////////////////////// // /////////////////////////
uniform int season; uniform float season;
void main(void) void main(void)
{ {