WE GOT TEXTURES BABY
This commit is contained in:
@@ -18,7 +18,10 @@ void main()
|
||||
{
|
||||
MaterialData material = pcs.sceneData.materials.data[pcs.materialID];
|
||||
|
||||
// vec4 diffuse = sampleTexture2DLinear(material.diffuseTex, inUV);
|
||||
vec4 diffuse = sampleTexture2DLinear(material.diffuseTex, inUV);
|
||||
outFragColor = diffuse;
|
||||
|
||||
|
||||
// if (diffuse.a < 0.1) {
|
||||
// discard;
|
||||
// }
|
||||
@@ -121,5 +124,5 @@ void main()
|
||||
// // fragColor = normal;
|
||||
// #endif
|
||||
|
||||
outFragColor = vec4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
// outFragColor = vec4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
}
|
||||
|
||||
BIN
destrum/assets_src/textures/kobe.png
Normal file
BIN
destrum/assets_src/textures/kobe.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 43 KiB |
Reference in New Issue
Block a user