Exemplo n.º 1
0
 public void Apply(InstanceObjectMesh instanceObjectMesh)
 {
     CameraConstant.Set(Camera); BillboardTransformConstant.Set(BillboardTransform); DiffuseConstant.Set(Diffuse); ColorPalletConstant.Set(ColorPallet); ScalePalletConstant.Set(ScalePallet);
     ApplyInstanceContants(instanceObjectMesh);
     TransformsConstant.Set(Transforms);
     Shader.Apply();
 }
Exemplo n.º 2
0
 public void ApplyGlobalContants()
 {
     CameraConstant.Set(Camera); BillboardTransformConstant.Set(BillboardTransform); DiffuseConstant.Set(Diffuse); ColorPalletConstant.Set(ColorPallet); ScalePalletConstant.Set(ScalePallet);
 }