C# Class TagTool.Shaders.ShaderConverter

Utility class for converting shader bytecode between rendering pipelines.
Show file Open project: TheGuardians/TagTool

Public Methods

Method Description
ConvertNewPixelShaderToOld ( byte shaderData, int mode ) : byte[]

Converts a new (1.235640+) pixel shader to one compatible with the 1.106708 pipeline.

ConvertNewVertexShaderToOld ( byte shaderData, int mode, VertexType type ) : byte[]

Converts a new (1.235640+) vertex shader to one compatible with the 1.106708 pipeline. Note that this requires that models have binormals set so that X = Position.W and Y = Tangent.W.

Method Details

ConvertNewPixelShaderToOld() public static method

Converts a new (1.235640+) pixel shader to one compatible with the 1.106708 pipeline.
public static ConvertNewPixelShaderToOld ( byte shaderData, int mode ) : byte[]
shaderData byte The shader bytecode to convert.
mode int The drawing mode.
return byte[]

ConvertNewVertexShaderToOld() public static method

Converts a new (1.235640+) vertex shader to one compatible with the 1.106708 pipeline. Note that this requires that models have binormals set so that X = Position.W and Y = Tangent.W.
public static ConvertNewVertexShaderToOld ( byte shaderData, int mode, VertexType type ) : byte[]
shaderData byte The shader bytecode to convert.
mode int The drawing mode.
type VertexType The vertex type.
return byte[]