forked from mirror/openmw-tes3mp
addition to last commit
This commit is contained in:
parent
a54e52586b
commit
ddb0a91994
1 changed files with 3 additions and 0 deletions
|
@ -326,6 +326,8 @@ void NIFLoader::createMaterial(const String &name,
|
||||||
{
|
{
|
||||||
material->getTechnique(0)->getPass(0)->setVertexProgram("main_vp");
|
material->getTechnique(0)->getPass(0)->setVertexProgram("main_vp");
|
||||||
material->getTechnique(0)->getPass(0)->setFragmentProgram("main_fp");
|
material->getTechnique(0)->getPass(0)->setFragmentProgram("main_fp");
|
||||||
|
|
||||||
|
material->getTechnique(0)->getPass(0)->setFog(true); // force-disable fixed function fog, it is calculated in shader
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a fallback technique without shadows and without mrt
|
// Create a fallback technique without shadows and without mrt
|
||||||
|
@ -338,6 +340,7 @@ void NIFLoader::createMaterial(const String &name,
|
||||||
{
|
{
|
||||||
pass2->setVertexProgram("main_fallback_vp");
|
pass2->setVertexProgram("main_fallback_vp");
|
||||||
pass2->setFragmentProgram("main_fallback_fp");
|
pass2->setFragmentProgram("main_fallback_fp");
|
||||||
|
pass2->setFog(true); // force-disable fixed function fog, it is calculated in shader
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add material bells and whistles
|
// Add material bells and whistles
|
||||||
|
|
Loading…
Reference in a new issue