c++ Programming Glossary: diffuse
Fragment shader inexplicable bahaviour http://stackoverflow.com/questions/14573079/fragment-shader-inexplicable-bahaviour This just causes glMaterialfv to be called for the ambient diffuse specular and shininess values. light.apply This just causes.. This just causes glLightfv to be called for the ambient diffuse and specular values glEnable GL_LIGHT0 glEnable GL_LIGHTING.. on in background. If you want to have real lighting with diffuse shaders you have to calculate the diffuse color on your own...
Again - parallax mapping issue in OpenGL, GLSL. It's not as usual as it seem to be http://stackoverflow.com/questions/4750707/again-parallax-mapping-issue-in-opengl-glsl-its-not-as-usual-as-it-seem-to Height map is loading correctly I tried to set it as a diffuse map and it looked OK. glGetError gives me No Errors and shader.. vec3 lightDir varying vec3 viewDir uniform sampler2D diffuseMap uniform sampler2D normalMap uniform sampler2D heightMap uniform.. vec4 ambient gl_FrontLightProduct 0 .ambient atten vec4 diffuse gl_FrontLightProduct 0 .diffuse nDotL atten vec4 specular gl_FrontLightProduct..
|