Skip to content
Snippets Groups Projects
Commit b04fa2a3 authored by Eric Wait's avatar Eric Wait
Browse files

Brighten the light and darken the ambient. Allow the light to saturate faster.

parent 77499398
No related branches found
No related tags found
No related merge requests found
......@@ -267,7 +267,7 @@ void createStaticVolumeShaderText(std::string strChans)
shaderText += "\t\t\tgrad.z = g_txDiffuse[i].Sample(g_samLinear[i], input.TextureUV+gradientSampleDirection[2]) - \n";
shaderText += "\t\t\t\tg_txDiffuse[i].Sample(g_samLinear[i], input.TextureUV-gradientSampleDirection[2]);\n";
shaderText += "\t\t\tgrad = normalize(grad);\n";
shaderText += "\t\t\tlightMod = saturate(dot(grad,mainLightDir))*0.6 + 0.4;\n";
shaderText += "\t\t\tlightMod = saturate(dot(grad,mainLightDir)*2.0)*0.7 + 0.3;\n";
shaderText += "\t\t}\n";
shaderText += "\t\tif (channelColor[i].a>0)\n";
shaderText += "\t\t\t++numAlpha;\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment