Added Forward Material debug viz for HLSL(so far) and integrated it back into editor flagging.

Re-added logic to track existing probe shader consts instead of constantly recreating it
Added logic for pre multiplied translucency mode
This commit is contained in:
Areloch 2019-11-21 00:48:55 -06:00
parent c74b669f5e
commit 72ceede272
16 changed files with 424 additions and 30 deletions

View file

@ -415,6 +415,11 @@ void ProcessedShaderMaterial::_determineFeatures( U32 stageNum,
fd.features.addFeature( MFT_NormalMapAtlas );
}
if (!fd.features.hasFeature(MFT_ForwardShading))
{
fd.features.removeFeature(MFT_DebugViz);
}
// Grab other features like normal maps, base texture, etc.
FeatureSet mergeFeatures;
mStages[stageNum].getFeatureSet( &mergeFeatures );
@ -513,6 +518,8 @@ void ProcessedShaderMaterial::_determineFeatures( U32 stageNum,
//
fd.features.addFeature( MFT_HDROut );
fd.features.addFeature(MFT_DebugViz);
// If vertex color is enabled on the material's stage and
// color is present in vertex format, add diffuse vertex
// color feature.