Added Comments
Added ability to hold shift and skip the terrain generation when loading Added ability for the perlin terrain to save a raw image of the terrain to use as a cache
This commit is contained in:
@ -64,6 +64,7 @@ float4 PShader(PixelShaderInput input) : SV_TARGET
|
||||
// Combine all components
|
||||
float4 color;
|
||||
// Check if the texture is valid before trying to sample it, some meshes use materials to color them and dont export an image texture file even though the color value is stored with the vertex
|
||||
// This might be totally my end because ive seen others be able to load the plane with all the correct textures???
|
||||
if (validTexture == 1)
|
||||
{
|
||||
color = saturate((ambientLight + diffuse + specular) * Texture.Sample(ss, input.TexCoord));
|
||||
|
Reference in New Issue
Block a user