Beispiel #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();
 }
Beispiel #2
0
 public void ApplyInstanceContants(InstanceObjectMesh instanceObjectMesh)
 {
     if (ApplyInstanceObjectMeshCallback != null)
     {
         ApplyInstanceObjectMeshCallback(this, instanceObjectMesh);
     }
 }
        public void Apply(InstanceObjectMesh instanceObjectMesh)
        {
            CameraConstant.Set(Camera); LightDirectionConstant.Set(LightDirection); LightColorConstant.Set(LightColor);
            ApplyInstanceContants(instanceObjectMesh);

            Shader.Apply();
        }
Beispiel #4
0
        public void Apply(InstanceObjectMesh instanceObjectMesh)
        {
            CameraConstant.Set(Camera);
            ApplyInstanceContants(instanceObjectMesh);

            Shader.Apply();
        }
Beispiel #5
0
 public void ApplyInstanceContants(InstanceObjectMesh instanceObjectMesh)
 {
     if (ApplyInstanceObjectMeshCallback != null)
     {
         ApplyInstanceObjectMeshCallback(this, instanceObjectMesh);
     }
     PositionConstant.Set(Position); SizeConstant.Set(Size); TexelOffsetConstant.Set(TexelOffset); ColorConstant.Set(Color); FadeConstant.Set(Fade); Fade2Constant.Set(Fade2); MainTextureConstant.Set(MainTexture); MainTexture2Constant.Set(MainTexture2); MainTexture3Constant.Set(MainTexture3);
 }
Beispiel #6
0
 public void ApplyInstanceContants(InstanceObjectMesh instanceObjectMesh)
 {
     if (ApplyInstanceObjectMeshCallback != null)
     {
         ApplyInstanceObjectMeshCallback(this, instanceObjectMesh);
     }
     PositionConstant.Set(Position); SizeConstant.Set(Size); PositionUVConstant.Set(PositionUV); SizeUVConstant.Set(SizeUV); TexelOffsetConstant.Set(TexelOffset); ColorConstant.Set(Color); DiffuseTextureConstant.Set(DiffuseTexture);
 }
 public void ApplyInstanceContants(InstanceObjectMesh instanceObjectMesh)
 {
     if (ApplyInstanceObjectMeshCallback != null)
     {
         ApplyInstanceObjectMeshCallback(this, instanceObjectMesh);
     }
     TransformConstant.Set(Transform); DiffuseConstant.Set(Diffuse);
 }
Beispiel #8
0
 public void ApplyInstanceContants(InstanceObjectMesh instanceObjectMesh)
 {
     if (ApplyInstanceObjectMeshCallback != null)
     {
         ApplyInstanceObjectMeshCallback(this, instanceObjectMesh);
     }
     PositionConstant.Set(Position); SizeConstant.Set(Size); ColorConstant.Set(Color);
 }
Beispiel #9
0
 public void ApplyInstanceContants(InstanceObjectMesh instanceObjectMesh)
 {
     if (ApplyInstanceObjectMeshCallback != null) ApplyInstanceObjectMeshCallback(this, instanceObjectMesh);
     PositionConstant.Set(Position);SizeConstant.Set(Size);ColorConstant.Set(Color);
 }
Beispiel #10
0
        public void Apply(InstanceObjectMesh instanceObjectMesh)
        {
            CameraConstant.Set(Camera);
            ApplyInstanceContants(instanceObjectMesh);

            Shader.Apply();
        }
Beispiel #11
0
 public void ApplyInstanceContants(InstanceObjectMesh instanceObjectMesh)
 {
     if (ApplyInstanceObjectMeshCallback != null) ApplyInstanceObjectMeshCallback(this, instanceObjectMesh);
     PositionConstant.Set(Position);SizeConstant.Set(Size);PositionUVConstant.Set(PositionUV);SizeUVConstant.Set(SizeUV);TexelOffsetConstant.Set(TexelOffset);ColorConstant.Set(Color);DiffuseTextureConstant.Set(DiffuseTexture);
 }
 public void ApplyInstanceContants(InstanceObjectMesh instanceObjectMesh)
 {
     if (ApplyInstanceObjectMeshCallback != null) ApplyInstanceObjectMeshCallback(this, instanceObjectMesh);
     PositionConstant.Set(Position);SizeConstant.Set(Size);TexelOffsetConstant.Set(TexelOffset);ColorConstant.Set(Color);FadeConstant.Set(Fade);MainTextureConstant.Set(MainTexture);MainTexture2Constant.Set(MainTexture2);
 }
Beispiel #13
0
        public void Apply(InstanceObjectMesh instanceObjectMesh)
        {
            CameraConstant.Set(Camera);LightDirectionConstant.Set(LightDirection);LightColorConstant.Set(LightColor);
            ApplyInstanceContants(instanceObjectMesh);

            Shader.Apply();
        }
Beispiel #14
0
		private void applyInstanceTransform(DiffuseTextureMaterial material, InstanceObjectMesh mesh)
		{
			material.Transform = Matrix4.FromAffineTransform(mesh.RotationMatrix, mesh.Scale, mesh.Position);//.RotateAroundAxisY(rot)
		}
Beispiel #15
0
 public void ApplyInstanceContants(InstanceObjectMesh instanceObjectMesh)
 {
     if (ApplyInstanceObjectMeshCallback != null) ApplyInstanceObjectMeshCallback(this, instanceObjectMesh);
     TransformConstant.Set(Transform);DiffuseConstant.Set(Diffuse);
 }
Beispiel #16
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();
 }
Beispiel #17
0
 public void ApplyInstanceContants(InstanceObjectMesh instanceObjectMesh)
 {
     if (ApplyInstanceObjectMeshCallback != null) ApplyInstanceObjectMeshCallback(this, instanceObjectMesh);
 }