29 public SkyShader(
string vsc,
string psc,
bool useVertexColor,
bool useTexture,
bool useAlphaThreshold) : base(
39 public SkyShader(
string vsc,
string psc,
bool useVertexColor,
bool useTexture,
bool useAlphaThreshold,
ShaderMacro[] shaderMacros =
null) :
40 base(vsc, psc, 1,
PrepareShaderMacros(useVertexColor, useTexture, useAlphaThreshold, shaderMacros)) {
54 Transforms.UpdateMatrices(1,
false,
false,
true);
60 bool useAlphaThreshold,
62 List<ShaderMacro> list = [];
69 if (useAlphaThreshold) {
72 if (shaderMacros !=
null
73 && shaderMacros.Length > 0) {
75 list.Add(shaderMacro);
78 return list.ToArray();
virtual void SetParameter()
static ShaderMacro[] PrepareShaderMacros(bool useVertexColor, bool useTexture, bool useAlphaThreshold, ShaderMacro[] shaderMacros=null)
ShaderParameter m_alphaThresholdParameter
SkyShader(string vsc, string psc, bool useVertexColor, bool useTexture, bool useAlphaThreshold, ShaderMacro[] shaderMacros=null)
ShaderParameter m_textureParameter
SamplerState SamplerState
ShaderParameter m_samplerStateParameter
SkyShader(string vsc, string psc, bool useVertexColor, bool useTexture, bool useAlphaThreshold)
ShaderParameter m_colorParameter
ShaderParameter m_worldViewProjectionMatrixParameter
override void PrepareForDrawingOverride()
static readonly Vector4 One