Lighting in vertex and fragment shader - in2gpu » Games and Graphics

Lighting in vertex and fragment shader - in2gpu » Games and Graphics

瀏覽:1474
日期:2024-07-20
Lighting in vertex shader, Gouraud reflection model: //Gouraud Vertex Shader //To keep it simple didn't add ambient and emissive lights; //only diffuse and specular with white intensity #version 330 layout(location = 0) in vec3 in_position; layout(locatio...看更多