mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
GFXStateBlockData new -> singleton
This commit is contained in:
parent
27d2f63986
commit
40cdc29e0c
7 changed files with 12 additions and 12 deletions
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
// Vector Light State
|
// Vector Light State
|
||||||
new GFXStateBlockData( AL_VectorLightState )
|
singleton GFXStateBlockData( AL_VectorLightState )
|
||||||
{
|
{
|
||||||
blendDefined = true;
|
blendDefined = true;
|
||||||
blendEnable = true;
|
blendEnable = true;
|
||||||
|
|
@ -102,7 +102,7 @@ new CustomMaterial( AL_VectorLightMaterial )
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Convex-geometry light states
|
// Convex-geometry light states
|
||||||
new GFXStateBlockData( AL_ConvexLightState )
|
singleton GFXStateBlockData( AL_ConvexLightState )
|
||||||
{
|
{
|
||||||
blendDefined = true;
|
blendDefined = true;
|
||||||
blendEnable = true;
|
blendEnable = true;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ singleton ShaderData( DeferredColorShader )
|
||||||
pixVersion = 2.0;
|
pixVersion = 2.0;
|
||||||
};
|
};
|
||||||
|
|
||||||
new GFXStateBlockData( AL_DeferredCaptureState : PFX_DefaultStateBlock )
|
singleton GFXStateBlockData( AL_DeferredCaptureState : PFX_DefaultStateBlock )
|
||||||
{
|
{
|
||||||
blendEnable = false;
|
blendEnable = false;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ $sequence = 16;
|
||||||
|
|
||||||
|
|
||||||
// Common stateblock definitions
|
// Common stateblock definitions
|
||||||
new GFXSamplerStateData(SamplerClampLinear)
|
singleton GFXSamplerStateData(SamplerClampLinear)
|
||||||
{
|
{
|
||||||
textureColorOp = GFXTOPModulate;
|
textureColorOp = GFXTOPModulate;
|
||||||
addressModeU = GFXAddressClamp;
|
addressModeU = GFXAddressClamp;
|
||||||
|
|
@ -45,7 +45,7 @@ new GFXSamplerStateData(SamplerClampLinear)
|
||||||
mipFilter = GFXTextureFilterLinear;
|
mipFilter = GFXTextureFilterLinear;
|
||||||
};
|
};
|
||||||
|
|
||||||
new GFXSamplerStateData(SamplerClampPoint)
|
singleton GFXSamplerStateData(SamplerClampPoint)
|
||||||
{
|
{
|
||||||
textureColorOp = GFXTOPModulate;
|
textureColorOp = GFXTOPModulate;
|
||||||
addressModeU = GFXAddressClamp;
|
addressModeU = GFXAddressClamp;
|
||||||
|
|
@ -56,7 +56,7 @@ new GFXSamplerStateData(SamplerClampPoint)
|
||||||
mipFilter = GFXTextureFilterPoint;
|
mipFilter = GFXTextureFilterPoint;
|
||||||
};
|
};
|
||||||
|
|
||||||
new GFXSamplerStateData(SamplerWrapLinear)
|
singleton GFXSamplerStateData(SamplerWrapLinear)
|
||||||
{
|
{
|
||||||
textureColorOp = GFXTOPModulate;
|
textureColorOp = GFXTOPModulate;
|
||||||
addressModeU = GFXTextureAddressWrap;
|
addressModeU = GFXTextureAddressWrap;
|
||||||
|
|
@ -67,7 +67,7 @@ new GFXSamplerStateData(SamplerWrapLinear)
|
||||||
mipFilter = GFXTextureFilterLinear;
|
mipFilter = GFXTextureFilterLinear;
|
||||||
};
|
};
|
||||||
|
|
||||||
new GFXSamplerStateData(SamplerWrapPoint)
|
singleton GFXSamplerStateData(SamplerWrapPoint)
|
||||||
{
|
{
|
||||||
textureColorOp = GFXTOPModulate;
|
textureColorOp = GFXTOPModulate;
|
||||||
addressModeU = GFXTextureAddressWrap;
|
addressModeU = GFXTextureAddressWrap;
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
// IN THE SOFTWARE.
|
// IN THE SOFTWARE.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
new GFXStateBlockData( ScatterSkySBData )
|
singleton GFXStateBlockData( ScatterSkySBData )
|
||||||
{
|
{
|
||||||
cullMode = "GFXCullNone";
|
cullMode = "GFXCullNone";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ singleton ShaderData( WaterShader )
|
||||||
pixVersion = 3.0;
|
pixVersion = 3.0;
|
||||||
};
|
};
|
||||||
|
|
||||||
new GFXSamplerStateData(WaterSampler)
|
singleton GFXSamplerStateData(WaterSampler)
|
||||||
{
|
{
|
||||||
textureColorOp = GFXTOPModulate;
|
textureColorOp = GFXTOPModulate;
|
||||||
addressModeU = GFXAddressWrap;
|
addressModeU = GFXAddressWrap;
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ function toggleSpecMapViz( %enable )
|
||||||
AL_SpecMapVisualize.disable();
|
AL_SpecMapVisualize.disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
new GFXStateBlockData( AL_DepthVisualizeState )
|
singleton GFXStateBlockData( AL_DepthVisualizeState )
|
||||||
{
|
{
|
||||||
zDefined = true;
|
zDefined = true;
|
||||||
zEnable = false;
|
zEnable = false;
|
||||||
|
|
@ -105,7 +105,7 @@ new GFXStateBlockData( AL_DepthVisualizeState )
|
||||||
samplerStates[1] = SamplerClampLinear; // viz color lookup
|
samplerStates[1] = SamplerClampLinear; // viz color lookup
|
||||||
};
|
};
|
||||||
|
|
||||||
new GFXStateBlockData( AL_DefaultVisualizeState )
|
singleton GFXStateBlockData( AL_DefaultVisualizeState )
|
||||||
{
|
{
|
||||||
blendDefined = true;
|
blendDefined = true;
|
||||||
blendEnable = true;
|
blendEnable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
new GFXStateBlockData( Viz_DefaultVisualizeState )
|
singleton GFXStateBlockData( Viz_DefaultVisualizeState )
|
||||||
{
|
{
|
||||||
/*alphaDefined = true;
|
/*alphaDefined = true;
|
||||||
alphaTestEnable = true;
|
alphaTestEnable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue