Пример #1
0
 public void setProgramConstantsVector4(int index, geom.Vector4 vector4)
 {
     if (index < ProgramConstants.USERDEFINE_STARTIDX)
     {
         throw new ArgumentException("之前行被保留");
     }
     _setProgramConstantsVector4(index, vector4);
 }
Пример #2
0
 /// <summary>
 /// 设置预定义的参数
 /// </summary>
 public void setProgramVariables(geom.Vector4 WorldSpaceCameraPos)
 {
     _setProgramConstantsVector4(ProgramConstants._WorldSpaceCameraPos_ROW, WorldSpaceCameraPos);
 }
Пример #3
0
 private void _setProgramConstantsVector4(int index, geom.Vector4 vector4)
 {
     programConstants.registers[index] = new float4(vector4.x, vector4.y, vector4.z, vector4.w);
 }