Class Shader
Assembly: SlipeClient.dll
Syntax
public class Shader : Material
Constructors
|
Improve this Doc
View Source
Shader(String, Single, Single, Boolean, ShaderElementType)
Create a shader from file or raw data
Declaration
public Shader(string filePathOrRaw, float priority = 0F, float maxDistance = 0F, bool layered = false, ShaderElementType shaderElementType = ShaderElementType.All)
Parameters
Properties
|
Improve this Doc
View Source
TechniqueName
The name of the technique that will be used.
Declaration
public string TechniqueName { get; }
Property Value
Methods
|
Improve this Doc
View Source
Apply(String, Element, Boolean)
Applies shader to a specific element
Declaration
public bool Apply(string textureName, Element targetElement, bool appendLayers = false)
Parameters
Returns
|
Improve this Doc
View Source
Apply(String, Boolean)
Applies shader to all elements
Declaration
public bool Apply(string textureName, bool appendLayers = false)
Parameters
Returns
|
Improve this Doc
View Source
Remove(String)
Removes shader from all elements
Declaration
public bool Remove(string textureName)
Parameters
Type |
Name |
Description |
String |
textureName |
|
Returns
|
Improve this Doc
View Source
Remove(String, Element)
Removes shader from a specific element
Declaration
public bool Remove(string textureName, Element targetElement)
Parameters
Returns
|
Improve this Doc
View Source
SetTessellation(Vector2)
Using tessellation allows a shader to manipulate the shape of the rendered image at each sub-division boundary.
Declaration
public bool SetTessellation(Vector2 tesselation)
Parameters
Type |
Name |
Description |
Vector2 |
tesselation |
|
Returns
|
Improve this Doc
View Source
Set a 3D transformation without center offset
Declaration
public bool SetTransform(Vector3 rotation)
Parameters
Type |
Name |
Description |
Vector3 |
rotation |
|
Returns
|
Improve this Doc
View Source
Set a 3D transformation without screen transform
Declaration
public bool SetTransform(Vector3 rotation, Vector3 rotationCenterOffset, bool rotationCenterOffsetOriginIsScreen = false)
Parameters
Type |
Name |
Description |
Vector3 |
rotation |
|
Vector3 |
rotationCenterOffset |
|
Boolean |
rotationCenterOffsetOriginIsScreen |
|
Returns
|
Improve this Doc
View Source
This function applies a 3D transformation to a shader element when it is drawn with dxDrawImage.
Declaration
public bool SetTransform(Vector3 rotation, Vector3 rotationCenterOffset, Vector2 perspectiveCenterOffset, bool rotationCenterOffsetOriginIsScreen = false, bool perspectiveCenterOffsetOriginIsScren = false)
Parameters
Type |
Name |
Description |
Vector3 |
rotation |
|
Vector3 |
rotationCenterOffset |
|
Vector2 |
perspectiveCenterOffset |
|
Boolean |
rotationCenterOffsetOriginIsScreen |
|
Boolean |
perspectiveCenterOffsetOriginIsScren |
|
Returns
|
Improve this Doc
View Source
SetValue(String, Object)
Declaration
public bool SetValue(string parameterName, dynamic value)
Parameters
Returns
|
Improve this Doc
View Source
SetValue(String, Object[])
Set a named parameter to compound values
Declaration
public bool SetValue(string parameterName, params dynamic[] values)
Parameters
Returns