Difference between revisions of "TEST-STRCMP4CODES"
From SimsWiki
Line 1: | Line 1: | ||
− | + | # | |
− | + | # deck/foundation material definitions. | |
− | + | # | |
− | + | # material for roof preview when they're displayed | |
− | + | define DeckFoundationPreviewMaterial() | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | define | + | |
material | material | ||
− | + | shader -layer 9991 | |
− | shader -layer | + | vertexFormatPred position 0 true |
− | + | vertexFormatPred normal 0 true | |
− | + | vertexFormatPred blendindices 0 false | |
− | + | vertexFormatPred targetindices 0 false | |
− | + | ||
− | pass -fixedFunction | + | pass -fixedFunction |
− | + | colorScalar $baseColor | |
− | + | create LightingStatesNoStdLights() | |
− | + | depthTest true -enableDepthWrite true | |
− | + | ||
− | + | alphaBlend srcFactor(srcAlpha) add dstFactor(invSrcAlpha) | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
stage | stage | ||
− | + | textureBlend select(colorScalar) select(colorScalar) | |
− | + | end | |
− | + | end | |
− | + | ||
− | + | pass -fixedFunction | |
− | + | create LightingStatesNoStdLights() | |
+ | fillmode wireframe | ||
+ | cullmode none | ||
+ | depthTest true -enableDepthWrite false | ||
+ | colorScalar (0, 0, 0) | ||
+ | |||
+ | stage | ||
+ | textureBlend select(colorScalar) select(colorScalar) | ||
+ | end | ||
+ | end | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
end | end | ||
− | end | + | end |
enddef | enddef | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | materialDefinition DeckFoundationPreviewPlaceable | |
− | + | setDefinition DeckFoundationPreviewMaterial | |
− | addParam | + | addParam baseColor (0.5, 0.5, 0.0, 0.5) |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
end | end | ||
− | materialDefinition | + | materialDefinition DeckFoundationPreviewNotPlaceable |
− | setDefinition | + | setDefinition DeckFoundationPreviewMaterial |
+ | addParam baseColor (1.0, 0.0, 0.0, 0.5) | ||
end | end |
Revision as of 12:20, 7 September 2007
- deck/foundation material definitions.
- material for roof preview when they're displayed
define DeckFoundationPreviewMaterial()
material shader -layer 9991 vertexFormatPred position 0 true vertexFormatPred normal 0 true vertexFormatPred blendindices 0 false vertexFormatPred targetindices 0 false
pass -fixedFunction colorScalar $baseColor create LightingStatesNoStdLights() depthTest true -enableDepthWrite true
alphaBlend srcFactor(srcAlpha) add dstFactor(invSrcAlpha)
stage textureBlend select(colorScalar) select(colorScalar) end end
pass -fixedFunction create LightingStatesNoStdLights() fillmode wireframe cullmode none depthTest true -enableDepthWrite false colorScalar (0, 0, 0)
stage textureBlend select(colorScalar) select(colorScalar) end end
end end
enddef
materialDefinition DeckFoundationPreviewPlaceable
setDefinition DeckFoundationPreviewMaterial addParam baseColor (0.5, 0.5, 0.0, 0.5)
end
materialDefinition DeckFoundationPreviewNotPlaceable
setDefinition DeckFoundationPreviewMaterial addParam baseColor (1.0, 0.0, 0.0, 0.5)
end