- Found in:
- PO3's PE
voidfunctionSetShaderType(ObjectReferenceakRef, ObjectReferenceakTemplate, stringasDiffusePath, intaiShaderType, intaiTextureType, boolabNoWeapons, boolabNoAlphaProperty)NativeGlobal
Description
GitHub Wiki Description (PO3's PE)
Shader Types
| Shader | Value |
|---|---|
| kDefault | 0 |
| kEnvironmentMap | 1 |
| kGlowMap | 2 |
| kParallax | 3 |
| kFaceGen | 4 |
| kFaceGenRGBTint | 5 |
| kHairTint | 6 |
| kParallaxOcc | 7 |
| kMultiTexLand | 8 |
| kLODLand | 9 |
| kMultilayerParallax | 11 |
| kTreeAnim | 12 |
| kMultiIndexTriShapeSnow | 14 |
| kLODObjectsHD | 15 |
| kEye | 16 |
| kCloud | 17 |
| kLODLandNoise | 18 |
| kMultiTexLandLODBlend | 19 |
- 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
ObjectReferenceakRef
ObjectReferenceakTemplate
stringasDiffusePath
intaiShaderType
intaiTextureType
boolabNoWeapons
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
