non functional deferred rendering and also camera paths and instanced GUIs
This commit is contained in:
parent
4569b471d5
commit
2d37c574d6
25 changed files with 933 additions and 315 deletions
|
|
@ -3,7 +3,7 @@
|
|||
const int MAX_TEXTURES = 500;
|
||||
|
||||
layout(location = 0) in vec2 inTextCoords;
|
||||
layout(location = 0) out vec4 outFragColor;
|
||||
layout(location = 0) out vec4 outAlbedo;
|
||||
|
||||
struct Material{
|
||||
vec4 diffuseColor;
|
||||
|
|
@ -28,8 +28,8 @@ void main()
|
|||
if(material.hasTexture == 1){
|
||||
vec4 texColor = texture(textSampler[material.textureIdx],inTextCoords);
|
||||
if(texColor.a < 0.05 || texColor.a >= 0.9){discard;}
|
||||
outFragColor = texColor;
|
||||
outAlbedo = texColor;
|
||||
} else{
|
||||
outFragColor = material.diffuseColor;
|
||||
outAlbedo = material.diffuseColor;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue