fog
This commit is contained in:
parent
b2c9f0ad4a
commit
48e199296b
@ -30,5 +30,5 @@ void main()
|
||||
|
||||
float specular = pow(max(0,dot(R,V)),10);
|
||||
float diffuse = max(0,dot(normal,lightDir));
|
||||
gl_FragColor = vec4(mix(objectColor.rgb,objectColor.rgb*diffuse+vec3(1)*specular,0.9), 1.0) * (1.0f - depth) + vec4(depth * vec3(5.0f/255.0f, 35.0f/255.0f, 95.0f/255.0f), objectColor.a);
|
||||
gl_FragColor = vec4(mix(objectColor.rgb,objectColor.rgb*diffuse+vec3(1)*specular,0.9), objectColor.a) * (1.0f - depth) + vec4(depth * vec3(5.0f/255.0f, 35.0f/255.0f, 95.0f/255.0f), objectColor.a);
|
||||
}
|
@ -201,10 +201,12 @@ void init()
|
||||
loadModelToContext("models/sphere.obj", sphereContext);
|
||||
sharkTexture = Core::LoadTexture("textures/Orca_Diffuse.jpg");
|
||||
initBubbles();
|
||||
for (int i = 0; i < 10; i++) {
|
||||
/*initRenderables();
|
||||
initPhysicsScene();*/
|
||||
/*for (int i = 0; i < 10; i++) {
|
||||
float r = (float)(rand()) / (float)(RAND_MAX/20.0);
|
||||
planetsCoords.push_back(glm::ballRand(r));
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
void shutdown()
|
||||
|
Loading…
Reference in New Issue
Block a user