hello, great job on compile of ge. Question: Ive never programmed or donw anything with glsl shaders, but I did download a program called shader designer, where it appears it generates code after you mess with certain settings and see the shader created in realtime. It has some shaders already with it that i checked out, like wood and bumpmapping. Anyways, how do i get this code into blender GE to get the effects on my models?
ex.
varying float LightIntensity;
varying vec3 MCposition;
uniform int TIME_FROM_INIT;
uniform sampler3D Noise;
vec3 Offset = vec3(0,0,0);
uniform vec3 SkyColor; // (0.0, 0.0, 0.8)
uniform vec3 CloudColor; // (0.8, 0.8, 0.8)
void main (void)
{
float offset = float(TIME_FROM_INIT) *0.0001;
Offset = vec3(-offset,offset,offset); // uncomment this line for animation
vec4 noisevec = texture3D(Noise, MCposition + Offset);
float intensity = (noisevec[0] + noisevec[1] +
noisevec[2] + noisevec[3] + 0.03125) * 1.5;
vec3 color = mix(SkyColor, CloudColor, intensity) * LightIntensity;
color = clamp(color, 0.0, 1.0);
gl_FragColor = vec4 (color, 1.0);
}
this is the code it generated for clouds, where to i put this script in blender so I can put it on a skysphere? Thanks