forked from mirror/openmw-tes3mp
Merge remote branch 'scrawl/graphics'
commit
a4fb71a0fc
@ -0,0 +1,308 @@
|
||||
#include "shaderhelper.hpp"
|
||||
#include "renderingmanager.hpp"
|
||||
#include "shadows.hpp"
|
||||
|
||||
#include <OgreHighLevelGpuProgramManager.h>
|
||||
#include <OgreHighLevelGpuProgram.h>
|
||||
#include <OgreGpuProgramParams.h>
|
||||
|
||||
#include <components/settings/settings.hpp>
|
||||
|
||||
using namespace Ogre;
|
||||
using namespace MWRender;
|
||||
|
||||
ShaderHelper::ShaderHelper(RenderingManager* rend)
|
||||
{
|
||||
mRendering = rend;
|
||||
applyShaders();
|
||||
}
|
||||
|
||||
void ShaderHelper::applyShaders()
|
||||
{
|
||||
if (!Settings::Manager::getBool("shaders", "Objects")) return;
|
||||
|
||||
bool mrt = RenderingManager::useMRT();
|
||||
bool shadows = Settings::Manager::getBool("enabled", "Shadows");
|
||||
bool split = Settings::Manager::getBool("split", "Shadows");
|
||||
|
||||
// shader for normal rendering
|
||||
createShader(mrt, shadows, split, "main");
|
||||
|
||||
// fallback shader without mrt and without shadows
|
||||
// (useful for reflection and for minimap)
|
||||
createShader(false, false, false, "main_fallback");
|
||||
}
|
||||
|
||||
void ShaderHelper::createShader(const bool mrt, const bool shadows, const bool split, const std::string& name)
|
||||
{
|
||||
HighLevelGpuProgramManager& mgr = HighLevelGpuProgramManager::getSingleton();
|
||||
|
||||
const int numsplits = 3;
|
||||
|
||||
// the number of lights to support.
|
||||
// when rendering an object, OGRE automatically picks the lights that are
|
||||
// closest to the object being rendered. unfortunately this mechanism does
|
||||
// not work perfectly for objects batched together (they will all use the same
|
||||
// lights). to work around this, we are simply pushing the maximum number
|
||||
// of lights here in order to minimize disappearing lights.
|
||||
int num_lights = Settings::Manager::getInt("num lights", "Objects");
|
||||
|
||||
{
|
||||
// vertex
|
||||
HighLevelGpuProgramPtr vertex;
|
||||
if (!mgr.getByName(name+"_vp").isNull())
|
||||
mgr.remove(name+"_vp");
|
||||
|
||||
vertex = mgr.createProgram(name+"_vp", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,
|
||||
"cg", GPT_VERTEX_PROGRAM);
|
||||
vertex->setParameter("profiles", "vs_4_0 vs_2_x vp40 arbvp1");
|
||||
vertex->setParameter("entry_point", "main_vp");
|
||||
StringUtil::StrStreamType outStream;
|
||||
outStream <<
|
||||
"void main_vp( \n"
|
||||
" float4 position : POSITION, \n"
|
||||
" float4 normal : NORMAL, \n"
|
||||
" float4 colour : COLOR, \n"
|
||||
" in float2 uv : TEXCOORD0, \n"
|
||||
" out float2 oUV : TEXCOORD0, \n"
|
||||
" out float4 oPosition : POSITION, \n"
|
||||
" out float4 oPositionObjSpace : TEXCOORD1, \n"
|
||||
" out float4 oNormal : TEXCOORD2, \n"
|
||||
" out float oDepth : TEXCOORD3, \n"
|
||||
" out float4 oVertexColour : TEXCOORD4, \n";
|
||||
if (shadows && !split) outStream <<
|
||||
" out float4 oLightSpacePos0 : TEXCOORD5, \n"
|
||||
" uniform float4x4 worldMatrix, \n"
|
||||
" uniform float4x4 texViewProjMatrix0, \n";
|
||||
else
|
||||
{
|
||||
for (int i=0; i<numsplits; ++i)
|
||||
{
|
||||
outStream <<
|
||||
" out float4 oLightSpacePos"<<i<<" : TEXCOORD"<<i+5<<", \n"
|
||||
" uniform float4x4 texViewProjMatrix"<<i<<", \n";
|
||||
}
|
||||
outStream <<
|
||||
" uniform float4x4 worldMatrix, \n";
|
||||
}
|
||||
outStream <<
|
||||
" uniform float4x4 worldViewProj \n"
|
||||
") \n"
|
||||
"{ \n"
|
||||
" oVertexColour = colour; \n"
|
||||
" oUV = uv; \n"
|
||||
" oNormal = normal; \n"
|
||||
" oPosition = mul( worldViewProj, position ); \n"
|
||||
" oDepth = oPosition.z; \n"
|
||||
" oPositionObjSpace = position; \n";
|
||||
if (shadows && !split) outStream <<
|
||||
" oLightSpacePos0 = mul(texViewProjMatrix0, mul(worldMatrix, position)); \n";
|
||||
else
|
||||
{
|
||||
outStream <<
|
||||
" float4 wPos = mul(worldMatrix, position); \n";
|
||||
for (int i=0; i<numsplits; ++i)
|
||||
{
|
||||
outStream <<
|
||||
" oLightSpacePos"<<i<<" = mul(texViewProjMatrix"<<i<<", wPos); \n";
|
||||
}
|
||||
}
|
||||
outStream <<
|
||||
"}";
|
||||
vertex->setSource(outStream.str());
|
||||
vertex->load();
|
||||
vertex->getDefaultParameters()->setNamedAutoConstant("worldViewProj", GpuProgramParameters::ACT_WORLDVIEWPROJ_MATRIX);
|
||||
if (shadows)
|
||||
{
|
||||
vertex->getDefaultParameters()->setNamedAutoConstant("worldMatrix", GpuProgramParameters::ACT_WORLD_MATRIX);
|
||||
if (!split)
|
||||
vertex->getDefaultParameters()->setNamedAutoConstant("texViewProjMatrix0", GpuProgramParameters::ACT_TEXTURE_VIEWPROJ_MATRIX, 0);
|
||||
else
|
||||
{
|
||||
for (int i=0; i<numsplits; ++i)
|
||||
{
|
||||
vertex->getDefaultParameters()->setNamedAutoConstant("texViewProjMatrix"+StringConverter::toString(i), GpuProgramParameters::ACT_TEXTURE_VIEWPROJ_MATRIX, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
// fragment
|
||||
HighLevelGpuProgramPtr fragment;
|
||||
if (!mgr.getByName(name+"_fp").isNull())
|
||||
mgr.remove(name+"_fp");
|
||||
|
||||
fragment = mgr.createProgram(name+"_fp", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,
|
||||
"cg", GPT_FRAGMENT_PROGRAM);
|
||||
fragment->setParameter("profiles", "ps_4_0 ps_2_x fp40 arbfp1");
|
||||
fragment->setParameter("entry_point", "main_fp");
|
||||
StringUtil::StrStreamType outStream;
|
||||
|
||||
if (shadows) outStream <<
|
||||
"float depthShadow(sampler2D shadowMap, float4 shadowMapPos, float2 offset) \n"
|
||||
"{ \n"
|
||||
" shadowMapPos /= shadowMapPos.w; \n"
|
||||
" float3 o = float3(offset.xy, -offset.x) * 0.3f; \n"
|
||||
" float c = (shadowMapPos.z <= tex2D(shadowMap, shadowMapPos.xy - o.xy).r) ? 1 : 0; // top left \n"
|
||||
" c += (shadowMapPos.z <= tex2D(shadowMap, shadowMapPos.xy + o.xy).r) ? 1 : 0; // bottom right \n"
|
||||
" c += (shadowMapPos.z <= tex2D(shadowMap, shadowMapPos.xy + o.zy).r) ? 1 : 0; // bottom left \n"
|
||||
" c += (shadowMapPos.z <= tex2D(shadowMap, shadowMapPos.xy - o.zy).r) ? 1 : 0; // top right \n"
|
||||
" return c / 4; \n"
|
||||
"} \n";
|
||||
|
||||
outStream <<
|
||||
"void main_fp( \n"
|
||||
" in float2 uv : TEXCOORD0, \n"
|
||||
" out float4 oColor : COLOR, \n"
|
||||
" uniform sampler2D texture : register(s0), \n"
|
||||
" float4 positionObjSpace : TEXCOORD1, \n"
|
||||
" float4 normal : TEXCOORD2, \n"
|
||||
" float iDepth : TEXCOORD3, \n"
|
||||
" float4 vertexColour : TEXCOORD4, \n"
|
||||
" uniform float4 fogColour, \n"
|
||||
" uniform float4 fogParams, \n";
|
||||
|
||||
if (shadows) outStream <<
|
||||
" uniform float4 shadowFar_fadeStart, \n";
|
||||
|
||||
if (shadows && !split) outStream <<
|
||||
" uniform sampler2D shadowMap : register(s1), \n"
|
||||
" float4 lightSpacePos0 : TEXCOORD5, \n"
|
||||
" uniform float4 invShadowmapSize0, \n";
|
||||
else
|
||||
{
|
||||
outStream <<
|
||||
" uniform float4 pssmSplitPoints, \n";
|
||||
for (int i=0; i<numsplits; ++i)
|
||||
{
|
||||
outStream <<
|
||||
" uniform sampler2D shadowMap"<<i<<" : register(s"<<i+1<<"), \n"
|
||||
" float4 lightSpacePos"<<i<<" : TEXCOORD"<<i+5<<", \n"
|
||||
" uniform float4 invShadowmapSize"<<i<<", \n";
|
||||
}
|
||||
}
|
||||
|
||||
if (mrt) outStream <<
|
||||
" out float4 oColor1 : COLOR1, \n"
|
||||
" uniform float far, \n";
|
||||
|
||||
for (int i=0; i<num_lights; ++i)
|
||||
{
|
||||
outStream <<
|
||||
" uniform float4 lightDiffuse"<<i<<", \n"
|
||||
" uniform float4 lightPositionObjSpace"<<i<<", \n"
|
||||
" uniform float4 lightAttenuation"<<i<<", \n";
|
||||
}
|
||||
outStream <<
|
||||
" uniform float4 lightAmbient, \n"
|
||||
" uniform float4 ambient, \n"
|
||||
" uniform float4 diffuse, \n"
|
||||
" uniform float4 emissive \n"
|
||||
") \n"
|
||||
"{ \n"
|
||||
" float4 tex = tex2D(texture, uv); \n"
|
||||
" float d; \n"
|
||||
" float attn; \n"
|
||||
" float3 lightDir; \n"
|
||||
" float3 lightColour = float3(0, 0, 0); \n";
|
||||
|
||||
for (int i=0; i<num_lights; ++i)
|
||||
{
|
||||
outStream <<
|
||||
" lightDir = lightPositionObjSpace"<<i<<".xyz - (positionObjSpace.xyz * lightPositionObjSpace"<<i<<".w); \n"
|
||||
|
||||
// pre-multiply light color with attenuation factor
|
||||
" d = length( lightDir ); \n"
|
||||
" attn = ( 1.0 / (( lightAttenuation"<<i<<".y ) + ( lightAttenuation"<<i<<".z * d ) + ( lightAttenuation"<<i<<".w * d * d ))); \n"
|
||||
" lightDiffuse"<<i<<" *= attn; \n";
|
||||
|
||||
if (i == 0 && shadows)
|
||||
{
|
||||
outStream <<
|
||||
" float shadow; \n";
|
||||
if (!split) outStream <<
|
||||
" shadow = depthShadow(shadowMap, lightSpacePos0, invShadowmapSize0.xy); \n";
|
||||
else
|
||||
{
|
||||
for (int j=0; j<numsplits; ++j)
|
||||
{
|
||||
std::string channel;
|
||||
if (j==0) channel = "x";
|
||||
else if (j==1) channel = "y";
|
||||
else if (j==2) channel = "z";
|
||||
|
||||
if (j==0)
|
||||
outStream << " if (iDepth <= pssmSplitPoints." << channel << ") \n";
|
||||
else if (j < numsplits - 1)
|
||||
outStream << " else if (iDepth <= pssmSplitPoints." << channel << ") \n";
|
||||
else
|
||||
outStream << " else \n";
|
||||
|
||||
outStream <<
|
||||
" { \n"
|
||||
" shadow = depthShadow(shadowMap" << j << ", lightSpacePos" << j << ", invShadowmapSize" << j << ".xy); \n"
|
||||
" } \n";
|
||||
}
|
||||
}
|
||||
outStream <<
|
||||
" float fadeRange = shadowFar_fadeStart.x - shadowFar_fadeStart.y; \n"
|
||||
" float fade = 1-((iDepth - shadowFar_fadeStart.y) / fadeRange); \n"
|
||||
" shadow = (iDepth > shadowFar_fadeStart.x) ? 1 : ((iDepth > shadowFar_fadeStart.y) ? 1-((1-shadow)*fade) : shadow); \n"
|
||||
" lightColour.xyz += shadow * lit(dot(normalize(lightDir), normalize(normal)), 0, 0).y * lightDiffuse"<<i<<".xyz;\n";
|
||||
}
|
||||
else outStream <<
|
||||
" lightColour.xyz += lit(dot(normalize(lightDir), normalize(normal)), 0, 0).y * lightDiffuse"<<i<<".xyz;\n";
|
||||
}
|
||||
|
||||
outStream <<
|
||||
" float3 lightingFinal = lightColour.xyz * diffuse.xyz * vertexColour.xyz + ambient.xyz * lightAmbient.xyz + emissive.xyz; \n"
|
||||
" float fogValue = saturate((iDepth - fogParams.y) * fogParams.w); \n"
|
||||
" oColor.xyz = lerp(lightingFinal * tex.xyz, fogColour, fogValue); \n"
|
||||
" oColor.a = tex.a * diffuse.a * vertexColour.a; \n";
|
||||
|
||||
if (mrt) outStream <<
|
||||
" oColor1 = float4(iDepth / far, 0, 0, (oColor.a == 1)); \n"; // only write to MRT if alpha is 1
|
||||
|
||||
outStream <<
|
||||
"}";
|
||||
fragment->setSource(outStream.str());
|
||||
fragment->load();
|
||||
|
||||
for (int i=0; i<num_lights; ++i)
|
||||
{
|
||||
fragment->getDefaultParameters()->setNamedAutoConstant("lightPositionObjSpace"+StringConverter::toString(i), GpuProgramParameters::ACT_LIGHT_POSITION_OBJECT_SPACE, i);
|
||||
fragment->getDefaultParameters()->setNamedAutoConstant("lightDiffuse"+StringConverter::toString(i), GpuProgramParameters::ACT_LIGHT_DIFFUSE_COLOUR, i);
|
||||
fragment->getDefaultParameters()->setNamedAutoConstant("lightAttenuation"+StringConverter::toString(i), GpuProgramParameters::ACT_LIGHT_ATTENUATION, i);
|
||||
}
|
||||
fragment->getDefaultParameters()->setNamedAutoConstant("emissive", GpuProgramParameters::ACT_SURFACE_EMISSIVE_COLOUR);
|
||||
fragment->getDefaultParameters()->setNamedAutoConstant("diffuse", GpuProgramParameters::ACT_SURFACE_DIFFUSE_COLOUR);
|
||||
fragment->getDefaultParameters()->setNamedAutoConstant("ambient", GpuProgramParameters::ACT_SURFACE_AMBIENT_COLOUR);
|
||||
fragment->getDefaultParameters()->setNamedAutoConstant("lightAmbient", GpuProgramParameters::ACT_AMBIENT_LIGHT_COLOUR);
|
||||
fragment->getDefaultParameters()->setNamedAutoConstant("fogColour", GpuProgramParameters::ACT_FOG_COLOUR);
|
||||
fragment->getDefaultParameters()->setNamedAutoConstant("fogParams", GpuProgramParameters::ACT_FOG_PARAMS);
|
||||
|
||||
if (shadows)
|
||||
{
|
||||
fragment->getDefaultParameters()->setNamedConstant("shadowFar_fadeStart", Vector4(mRendering->getShadows()->getShadowFar(), mRendering->getShadows()->getFadeStart()*mRendering->getShadows()->getShadowFar(), 0, 0));
|
||||
for (int i=0; i < (split ? numsplits : 1); ++i)
|
||||
{
|
||||
fragment->getDefaultParameters()->setNamedAutoConstant("invShadowmapSize" + StringConverter::toString(i), GpuProgramParameters::ACT_INVERSE_TEXTURE_SIZE, i+1);
|
||||
}
|
||||
if (split)
|
||||
{
|
||||
Vector4 splitPoints;
|
||||
const PSSMShadowCameraSetup::SplitPointList& splitPointList = mRendering->getShadows()->getPSSMSetup()->getSplitPoints();
|
||||
// Populate from split point 1, not 0, since split 0 isn't useful (usually 0)
|
||||
for (int i = 1; i < numsplits; ++i)
|
||||
{
|
||||
splitPoints[i-1] = splitPointList[i];
|
||||
}
|
||||
fragment->getDefaultParameters()->setNamedConstant("pssmSplitPoints", splitPoints);
|
||||
}
|
||||
}
|
||||
|
||||
if (mrt)
|
||||
fragment->getDefaultParameters()->setNamedAutoConstant("far", GpuProgramParameters::ACT_FAR_CLIP_DISTANCE);
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
#ifndef GAME_SHADERHELPER_H
|
||||
#define GAME_SHADERHELPER_H
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace MWRender
|
||||
{
|
||||
class RenderingManager;
|
||||
|
||||
///
|
||||
/// \brief manages the main shader
|
||||
///
|
||||
class ShaderHelper
|
||||
{
|
||||
public:
|
||||
ShaderHelper(RenderingManager* rend);
|
||||
|
||||
void applyShaders();
|
||||
///< apply new settings
|
||||
|
||||
private:
|
||||
RenderingManager* mRendering;
|
||||
|
||||
void createShader(const bool mrt, const bool shadows, const bool split, const std::string& name);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
@ -0,0 +1,175 @@
|
||||
#include "shadows.hpp"
|
||||
|
||||
#include <components/settings/settings.hpp>
|
||||
#include <openengine/ogre/renderer.hpp>
|
||||
|
||||
#include <OgreSceneManager.h>
|
||||
#include <OgreColourValue.h>
|
||||
#include <OgreShadowCameraSetupLiSPSM.h>
|
||||
#include <OgreShadowCameraSetupPSSM.h>
|
||||
#include <OgreHardwarePixelBuffer.h>
|
||||
|
||||
#include <OgreOverlayContainer.h>
|
||||
#include <OgreOverlayManager.h>
|
||||
|
||||
#include "renderconst.hpp"
|
||||
|
||||
using namespace Ogre;
|
||||
using namespace MWRender;
|
||||
|
||||
Shadows::Shadows(OEngine::Render::OgreRenderer* rend) :
|
||||
mShadowFar(1000), mFadeStart(0.9)
|
||||
{
|
||||
mRendering = rend;
|
||||
mSceneMgr = mRendering->getScene();
|
||||
recreate();
|
||||
}
|
||||
|
||||
void Shadows::recreate()
|
||||
{
|
||||
bool enabled = Settings::Manager::getBool("enabled", "Shadows");
|
||||
|
||||
// Split shadow maps are currently disabled because the terrain cannot cope with them
|
||||
// (Too many texture units) Solution would be a multi-pass terrain material
|
||||
bool split = Settings::Manager::getBool("split", "Shadows");
|
||||
//const bool split = false;
|
||||
|
||||
if (!enabled)
|
||||
{
|
||||
mSceneMgr->setShadowTechnique(SHADOWTYPE_NONE);
|
||||
return;
|
||||
}
|
||||
|
||||
int texsize = Settings::Manager::getInt("texture size", "Shadows");
|
||||
mSceneMgr->setShadowTextureSize(texsize);
|
||||
|
||||
mSceneMgr->setShadowTechnique(SHADOWTYPE_TEXTURE_MODULATIVE_INTEGRATED);
|
||||
|
||||
// no point light shadows, i'm afraid. might revisit this with Deferred Shading
|
||||
mSceneMgr->setShadowTextureCountPerLightType(Light::LT_POINT, 0);
|
||||
|
||||
mSceneMgr->setShadowTextureCountPerLightType(Light::LT_DIRECTIONAL, split ? 3 : 1);
|
||||
mSceneMgr->setShadowTextureCount(split ? 3 : 1);
|
||||
|
||||
mSceneMgr->setShadowTextureSelfShadow(true);
|
||||
mSceneMgr->setShadowCasterRenderBackFaces(true);
|
||||
mSceneMgr->setShadowTextureCasterMaterial("depth_shadow_caster");
|
||||
mSceneMgr->setShadowTexturePixelFormat(PF_FLOAT32_R);
|
||||
mSceneMgr->setShadowDirLightTextureOffset(0.9);
|
||||
mSceneMgr->setShadowDirectionalLightExtrusionDistance(1000000);
|
||||
mSceneMgr->setShowDebugShadows(true);
|
||||
|
||||
mShadowFar = split ? Settings::Manager::getInt("split shadow distance", "Shadows") : Settings::Manager::getInt("shadow distance", "Shadows");
|
||||
mSceneMgr->setShadowFarDistance(mShadowFar);
|
||||
|
||||
mFadeStart = Settings::Manager::getFloat("fade start", "Shadows");
|
||||
|
||||
ShadowCameraSetupPtr shadowCameraSetup;
|
||||
if (split)
|
||||
{
|
||||
mPSSMSetup = new PSSMShadowCameraSetup();
|
||||
mPSSMSetup->setSplitPadding(5);
|
||||
mPSSMSetup->calculateSplitPoints(3, mRendering->getCamera()->getNearClipDistance(), mShadowFar);
|
||||
|
||||
const Real adjustFactors[3] = {64, 64, 64};
|
||||
for (int i=0; i < 3; ++i)
|
||||
{
|
||||
mPSSMSetup->setOptimalAdjustFactor(i, adjustFactors[i]);
|
||||
/*if (i==0)
|
||||
mSceneMgr->setShadowTextureConfig(i, texsize, texsize, Ogre::PF_FLOAT32_R);
|
||||
else if (i ==1)
|
||||
mSceneMgr->setShadowTextureConfig(i, texsize/2, texsize/2, Ogre::PF_FLOAT32_R);
|
||||
else if (i ==2)
|
||||
mSceneMgr->setShadowTextureConfig(i, texsize/4, texsize/4, Ogre::PF_FLOAT32_R);*/
|
||||
}
|
||||
|
||||
shadowCameraSetup = ShadowCameraSetupPtr(mPSSMSetup);
|
||||
}
|
||||
else
|
||||
{
|
||||
LiSPSMShadowCameraSetup* lispsmSetup = new LiSPSMShadowCameraSetup();
|
||||
lispsmSetup->setOptimalAdjustFactor(2);
|
||||
//lispsmSetup->setCameraLightDirectionThreshold(Degree(0));
|
||||
//lispsmSetup->setUseAggressiveFocusRegion(false);
|
||||
shadowCameraSetup = ShadowCameraSetupPtr(lispsmSetup);
|
||||
}
|
||||
mSceneMgr->setShadowCameraSetup(shadowCameraSetup);
|
||||
|
||||
// Set visibility mask for the shadow render textures
|
||||
int visibilityMask = RV_Actors * Settings::Manager::getBool("actor shadows", "Shadows")
|
||||
+ (RV_Statics + RV_StaticsSmall) * Settings::Manager::getBool("statics shadows", "Shadows")
|
||||
+ RV_Misc * Settings::Manager::getBool("misc shadows", "Shadows");
|
||||
|
||||
for (int i = 0; i < (split ? 3 : 1); ++i)
|
||||
{
|
||||
TexturePtr shadowTexture = mSceneMgr->getShadowTexture(i);
|
||||
Viewport* vp = shadowTexture->getBuffer()->getRenderTarget()->getViewport(0);
|
||||
vp->setVisibilityMask(visibilityMask);
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
// --------------------------- Debug overlays to display the content of shadow maps -----------------------------------
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
/*
|
||||
OverlayManager& mgr = OverlayManager::getSingleton();
|
||||
Overlay* overlay;
|
||||
|
||||
// destroy if already exists
|
||||
if (overlay = mgr.getByName("DebugOverlay"))
|
||||
mgr.destroy(overlay);
|
||||
|
||||
overlay = mgr.create("DebugOverlay");
|
||||
for (size_t i = 0; i < (split ? 3 : 1); ++i) {
|
||||
TexturePtr tex = mRendering->getScene()->getShadowTexture(i);
|
||||
|
||||
// Set up a debug panel to display the shadow
|
||||
|
||||
if (MaterialManager::getSingleton().resourceExists("Ogre/DebugTexture" + StringConverter::toString(i)))
|
||||
MaterialManager::getSingleton().remove("Ogre/DebugTexture" + StringConverter::toString(i));
|
||||
MaterialPtr debugMat = MaterialManager::getSingleton().create(
|
||||
"Ogre/DebugTexture" + StringConverter::toString(i),
|
||||
ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
|
||||
|
||||
debugMat->getTechnique(0)->getPass(0)->setLightingEnabled(false);
|
||||
TextureUnitState *t = debugMat->getTechnique(0)->getPass(0)->createTextureUnitState(tex->getName());
|
||||
t->setTextureAddressingMode(TextureUnitState::TAM_CLAMP);
|
||||
|
||||
OverlayContainer* debugPanel;
|
||||
|
||||
// destroy container if exists
|
||||
try
|
||||
{
|
||||
if (debugPanel =
|
||||
static_cast<OverlayContainer*>(
|
||||
mgr.getOverlayElement("Ogre/DebugTexPanel" + StringConverter::toString(i)
|
||||
)))
|
||||
mgr.destroyOverlayElement(debugPanel);
|
||||
}
|
||||
catch (Ogre::Exception&) {}
|
||||
|
||||
debugPanel = (OverlayContainer*)
|
||||
(OverlayManager::getSingleton().createOverlayElement("Panel", "Ogre/DebugTexPanel" + StringConverter::toString(i)));
|
||||
debugPanel->_setPosition(0.8, i*0.25);
|
||||
debugPanel->_setDimensions(0.2, 0.24);
|
||||
debugPanel->setMaterialName(debugMat->getName());
|
||||
debugPanel->show();
|
||||
overlay->add2D(debugPanel);
|
||||
overlay->show();
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
PSSMShadowCameraSetup* Shadows::getPSSMSetup()
|
||||
{
|
||||
return mPSSMSetup;
|
||||
}
|
||||
|
||||
float Shadows::getShadowFar() const
|
||||
{
|
||||
return mShadowFar;
|
||||
}
|
||||
|
||||
float Shadows::getFadeStart() const
|
||||
{
|
||||
return mFadeStart;
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
#ifndef GAME_SHADOWS_H
|
||||
#define GAME_SHADOWS_H
|
||||
|
||||
// forward declares
|
||||
namespace Ogre
|
||||
{
|
||||
class SceneManager;
|
||||
class PSSMShadowCameraSetup;
|
||||
}
|
||||
namespace OEngine{
|
||||
namespace Render{
|
||||
class OgreRenderer;
|
||||
}
|
||||
}
|
||||
|
||||
namespace MWRender
|
||||
{
|
||||
class Shadows
|
||||
{
|
||||
public:
|
||||
Shadows(OEngine::Render::OgreRenderer* rend);
|
||||
|
||||
void recreate();
|
||||
|
||||
Ogre::PSSMShadowCameraSetup* getPSSMSetup();
|
||||
float getShadowFar() const;
|
||||
float getFadeStart() const;
|
||||
|
||||
protected:
|
||||
OEngine::Render::OgreRenderer* mRendering;
|
||||
Ogre::SceneManager* mSceneMgr;
|
||||
|
||||
Ogre::PSSMShadowCameraSetup* mPSSMSetup;
|
||||
float mShadowFar;
|
||||
float mFadeStart;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
@ -0,0 +1,37 @@
|
||||
#include "nifoverrides.hpp"
|
||||
|
||||
#include <OgreStringConverter.h>
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
using namespace NifOverrides;
|
||||
|
||||
Ogre::ConfigFile Overrides::mTransparencyOverrides = Ogre::ConfigFile();
|
||||
|
||||
void Overrides::loadTransparencyOverrides (const std::string& file)
|
||||
{
|
||||
mTransparencyOverrides.load(file);
|
||||
}
|
||||
|
||||
TransparencyResult Overrides::getTransparencyOverride(const std::string& texture)
|
||||
{
|
||||
TransparencyResult result;
|
||||
result.first = false;
|
||||
|
||||
std::string tex = texture;
|
||||
boost::to_lower(tex);
|
||||
|
||||
Ogre::ConfigFile::SectionIterator seci = mTransparencyOverrides.getSectionIterator();
|
||||
while (seci.hasMoreElements())
|
||||
{
|
||||
Ogre::String sectionName = seci.peekNextKey();
|
||||
if (sectionName == tex)
|
||||
{
|
||||
result.first = true;
|
||||
result.second = Ogre::StringConverter::parseInt(mTransparencyOverrides.getSetting("alphaRejectValue", sectionName));
|
||||
break;
|
||||
}
|
||||
seci.getNext();
|
||||
}
|
||||
return result;
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
#ifndef COMPONENTS_NIFOVERRIDES_H
|
||||
#define COMPONENTS_NIFOVERRIDES_H
|
||||
|
||||
#include <OgreConfigFile.h>
|
||||
|
||||
namespace NifOverrides
|
||||
{
|
||||
|
||||
typedef std::pair<bool, int> TransparencyResult;
|
||||
|
||||
/// \brief provide overrides for some model / texture properties that bethesda has chosen poorly
|
||||
class Overrides
|
||||
{
|
||||
public:
|
||||
static Ogre::ConfigFile mTransparencyOverrides;
|
||||
void loadTransparencyOverrides (const std::string& file);
|
||||
|
||||
static TransparencyResult getTransparencyOverride(const std::string& texture);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
@ -0,0 +1,51 @@
|
||||
void main_vp(
|
||||
float4 position : POSITION,
|
||||
float2 uv : TEXCOORD0,
|
||||
|
||||
out float4 oPosition : POSITION,
|
||||
out float2 oDepth : TEXCOORD0,
|
||||
out float2 oUv : TEXCOORD1,
|
||||
|
||||
uniform float4x4 wvpMat)
|
||||
{
|
||||
// this is the view space position
|
||||
oPosition = mul(wvpMat, position);
|
||||
|
||||
// depth info for the fragment.
|
||||
oDepth.x = oPosition.z;
|
||||
oDepth.y = oPosition.w;
|
||||
|
||||
// clamp z to zero. seem to do the trick. :-/
|
||||
oPosition.z = max(oPosition.z, 0);
|
||||
|
||||
oUv = uv;
|
||||
}
|
||||
|
||||
void main_fp(
|
||||
float2 depth : TEXCOORD0,
|
||||
float2 uv : TEXCOORD1,
|
||||
uniform sampler2D texture1 : register(s0),
|
||||
|
||||
out float4 oColour : COLOR)
|
||||
{
|
||||
float finalDepth = depth.x / depth.y;
|
||||
|
||||
// use alpha channel of the first texture
|
||||
float alpha = tex2D(texture1, uv).a;
|
||||
|
||||
// discard if alpha is less than 0.5
|
||||
clip((alpha >= 0.5) ? 1 : -1);
|
||||
|
||||
oColour = float4(finalDepth, finalDepth, finalDepth, 1);
|
||||
}
|
||||
|
||||
void main_fp_noalpha(
|
||||
float2 depth : TEXCOORD0,
|
||||
float2 uv : TEXCOORD1,
|
||||
|
||||
out float4 oColour : COLOR)
|
||||
{
|
||||
float finalDepth = depth.x / depth.y;
|
||||
|
||||
oColour = float4(finalDepth, finalDepth, finalDepth, 1);
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
vertex_program depth_shadow_caster_vs cg
|
||||
{
|
||||
source depthshadowcaster.cg
|
||||
profiles vs_1_1 arbvp1
|
||||
entry_point main_vp
|
||||
|
||||
default_params
|
||||
{
|
||||
param_named_auto wvpMat worldviewproj_matrix
|
||||
}
|
||||
}
|
||||
|
||||
fragment_program depth_shadow_caster_ps cg
|
||||
{
|
||||
source depthshadowcaster.cg
|
||||
profiles ps_2_0 arbfp1
|
||||
entry_point main_fp
|
||||
|
||||
default_params
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
fragment_program depth_shadow_caster_ps_noalpha cg
|
||||
{
|
||||
source depthshadowcaster.cg
|
||||
profiles ps_2_0 arbfp1
|
||||
entry_point main_fp_noalpha
|
||||
|
||||
default_params
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
material depth_shadow_caster
|
||||
{
|
||||
technique
|
||||
{
|
||||
pass
|
||||
{
|
||||
vertex_program_ref depth_shadow_caster_vs
|
||||
{
|
||||
}
|
||||
|
||||
fragment_program_ref depth_shadow_caster_ps
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
material depth_shadow_caster_noalpha
|
||||
{
|
||||
technique
|
||||
{
|
||||
pass
|
||||
{
|
||||
vertex_program_ref depth_shadow_caster_vs
|
||||
{
|
||||
}
|
||||
|
||||
fragment_program_ref depth_shadow_caster_ps_noalpha
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,574 @@
|
||||
# Bethesda has used wrong transparency settings for many textures
|
||||
# (who would have guessed)
|
||||
# This is very unfortunate because objects with real transparency:
|
||||
# - cannot cast shadows
|
||||
# - cannot receive advanced framebuffer effects like depth of field or ambient occlusion
|
||||
# - cannot cover lens flare effects (the lens flare will just shine through)
|
||||
|
||||
# This file lists textures that should be using alpha rejection instead of transparency
|
||||
# basically these are textures that are not translucent (i.e. at one spot on the texture, either transparent or opaque)
|
||||
|
||||
# Note: all the texture names here have to be lowercase
|
||||
|
||||
# fauna
|
||||
[textures\tx_wickwheat_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_wickwheat_03.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_red_lichen_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_stone_flower_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ivy_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ivy_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_saltrice_04.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_black_lichen_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_leaves_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_leaves_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_leaves_03.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_leaves_04.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_leaves_06.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_leaves_07.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ai_heather_01.dds]
|
||||
alphaRejectValue = 96
|
||||
|
||||
[textures\tx_goldkanet_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_goldkanet_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_plant_tails00.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_vine_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_comberry_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_willow_flower_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_cork_bulb_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_green_lichen_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_roobrush_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bittergreen_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_chokeweed_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_branches_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_branches_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_guarskin_hut_03.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_hackle-lo_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bc_fern_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bc_fern_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bc_leaves_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_marshmerrow_03.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bc_moss_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bc_moss_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bc_lilypad_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bc_lilypad_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bc_lilypad_03.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_fire_fern_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
# banners and flags
|
||||
[textures\tx_flag_imp_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_arena_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_comfort_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_child_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_count_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_faith_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_walk_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_imp_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_redoran_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_avs_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_serving_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_speak_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_stdeyln_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_stolms_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_thin_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_vivec_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_vivec_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ashl_banner_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ashl_banner_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ashl_banner_04.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ashl_banner_05.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ashl_banner_06.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ashl_banner_07.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ashl_a_banner.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ashl_e_banner.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ashl_u_banner.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ashl_z_banner.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_banner_6th.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_banner_6th_tall.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_banner_gnisis_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_banner_gnisis_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_bhm_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_03.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_04.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_05.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_06.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_07.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_08.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_08.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_09.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_10.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_11.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_12.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_tapestry_13.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_lutestrings_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_fabric_imp_altar_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_akatosh_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_apprentice_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_arkay_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_dibella_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_golem_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_julianos_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_kynareth_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_lady_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_lord_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_lover_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_mara_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_ritual_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_shadow_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_steed_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_stendarr_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_thief_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_tower_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_warrior_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_wizard_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_c_t_zenithar_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_banner_dagoth_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bannerd_tavern_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bannerd_goods_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bannerd_danger_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bannerd_welcome_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bannerd_clothing_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bannerd_alchemy_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_banner_hlaalu_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_banner_redoran_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_banner_temple_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_banner_temple_03.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_book_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_ald_velothi.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_gnaar_mok.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_hla_oad.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_khull.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_pawn_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_sadrith_mora.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_tel_aruhn.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_tel_branora.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_tel_fyr.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_tel_mora.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_telvani_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_tel_vos.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_de_banner_vos.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bannerd_w_a_shop_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_banner_temple_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_mural1_00.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_mural1_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_mural4_00.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_mural4_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_mural5_00.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_telvanni_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_v_b_hlaalu_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_fabric_tapestry.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_fabric_tapestry_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_fabric_tapestry_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_fabric_tapestry_03.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_fabric_tapestry_04.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
# characters
|
||||
[textures\tx_netchgod00.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_b_n_argonian_f_hair02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_b_n_argonian_f_hair03.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_b_n_argonian_m_hair01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_b_n_argonian_m_hair04.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_b_n_argonian_m_hair05.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_b_n_khajiit_f_hair01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_b_n_khajiit_f_hair02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_b_n_khajiit_m_hair01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_corprus_stalker12.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_a_clavicus02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_b_n_dark elf_m_hair11.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_b_n_dark elf_f_hair10.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
# misc items
|
||||
[textures\tx_sail.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_longboatsail01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_longboatsail01a.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_longboatsail01b.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_longboatsail02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_quill.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_note_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_note_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_parchment_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_parchment_03.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_scroll_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_scroll_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_scroll_03.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_alpha_small_edge.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_alpha_shadow_circular.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
# building materials
|
||||
[textures\tx_shack_thatch_strip.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_rug00.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_rug_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_rug_edge_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_awning_thatch_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_awning_woven_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_bridgeropes.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_rope_woven_01.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_rope_woven_02.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_ashl_tent_06.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_guar_tarp.dds]
|
||||
alphaRejectValue = 128
|
||||
|
||||
[textures\tx_velothi_glyph00.dds]
|
||||
alphaRejectValue = 128
|
Loading…
Reference in New Issue