Background for Skyrim SE
Member of the PO3_SKSEFunctions script
voidfunctionSetShaderType(ObjectReferenceakRef, ObjectReferenceakTemplate, stringasDiffusePath, intaiShaderType, intaiTextureType, boolabNoWeapons, boolabNoAlphaProperty)NativeGlobal

Description

GitHub Wiki Description (PO3's PE)

Shader Types
ShaderValue
kDefault0
kEnvironmentMap1
kGlowMap2
kParallax3
kFaceGen4
kFaceGenRGBTint5
kHairTint6
kParallaxOcc7
kMultiTexLand8
kLODLand9
kMultilayerParallax11
kTreeAnim12
kMultiIndexTriShapeSnow14
kLODObjectsHD15
kEye16
kCloud17
kLODLandNoise18
kMultiTexLandLODBlend19
  • Sets the ref's shader material type ie. Default to Cubemap
  • If texture type is -1, the reference's entire textureset is replaced using the template's textureset;
  • If texture type is 0-9 the template's textureset is still applied but reference's texture at that index will take priority.
  • Optional diffuse path can be used to filter shapes to apply the shader to, partial matches are accepted like "Draugr.dds"
  • Limitations - cannot be used on geometry with no normals (ie. body skin meshes)

Parameters

  1. ObjectReferenceakRef

  2. ObjectReferenceakTemplate

  3. stringasDiffusePath

  4. intaiShaderType

  5. intaiTextureType

  6. boolabNoWeapons

  7. boolabNoAlphaProperty


Examples

Auto-Generated Example

ObjectReference myObjectReference__akRef
ObjectReference myObjectReference__akTemplate
string myString__asDiffusePath
int myInt__aiShaderType
int myInt__aiTextureType
bool myBool__abNoWeapons
bool myBool__abNoAlphaProperty

PO3_SKSEFunctions.SetShaderType(myObjectReference__akRef, myObjectReference__akTemplate, myString__asDiffusePath, myInt__aiShaderType, myInt__aiTextureType, myBool__abNoWeapons, myBool__abNoAlphaProperty)

Additional References

View this function on the GitHub Wiki for powerofthree's Papyrus Extender

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.