Visually upgraded deferred rendering example with moving lights, multiple meshes and normal mapping
This commit is contained in:
parent
f06ffae58e
commit
18013c44e0
12 changed files with 247 additions and 196 deletions
|
|
@ -17,6 +17,7 @@ void main()
|
|||
components[0] = texture(samplerPosition, inUV.st).rgb;
|
||||
components[1] = texture(samplerNormal, inUV.st).rgb;
|
||||
components[2] = texture(samplerAlbedo, inUV.st).rgb;
|
||||
// Uncomment to display specular component
|
||||
//components[2] = vec3(texture(samplerAlbedo, inUV.st).a);
|
||||
|
||||
// Select component depending on z coordinate of quad
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue