mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
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:
parent
c74b669f5e
commit
72ceede272
16 changed files with 424 additions and 30 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue