Difference between revisions of "TEST-STRCMP4CODES"

From SimsWiki
Jump to: navigation, search
Line 1: Line 1:
#
+
materialDefinition clothesChangeSwirl
# deck/foundation material definitions.
+
  setDefinition StandardParticleModelMaterial
#
+
  addParam stdMatLayer 15
 
+
   addParam stdMatLightingEnabled false
# material for roof preview when they're displayed
+
  addParam stdMatAlphaTestEnabled false
define DeckFoundationPreviewMaterial()
+
  addParam stdMatBaseTextureAlphaReplicate true
   material
+
  addParam stdMatBaseTextureEnabled true
      shader -layer 9991
+
   addParam stdMatBaseTextureName clotheschange-swirls
        vertexFormatPred position      0 true
+
   addParam stdMatEmissiveCoef (1, 1, 1)
        vertexFormatPred normal        0 true
+
   addParam stdMatBaseTextureAddressingU clamp
        vertexFormatPred blendindices  0 false
+
   addParam stdMatBaseTextureAddressingV clamp 
        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
 
end

Revision as of 06:34, 7 September 2007

materialDefinition clothesChangeSwirl

  setDefinition StandardParticleModelMaterial
  addParam stdMatLayer 15
  addParam stdMatLightingEnabled false
  addParam stdMatAlphaTestEnabled false
  addParam stdMatBaseTextureAlphaReplicate true
  addParam stdMatBaseTextureEnabled true
  addParam stdMatBaseTextureName clotheschange-swirls
  addParam stdMatEmissiveCoef (1, 1, 1)
  addParam stdMatBaseTextureAddressingU clamp
  addParam stdMatBaseTextureAddressingV clamp  

end

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox