15 public Int3 VolumeSize {
get;
private set; }
16 public Int3 VolumeSizePow2 {
get;
private set; }
27 Shader.SetGlobalMatrix(
"_WorldToVolume", this.transform.worldToLocalMatrix);
29 Shader.SetGlobalVector(
"_VolBufferSize",
new Vector4(VolumeSize.x, VolumeSize.y, VolumeSize.z));
31 Shader.SetGlobalVector(
"_VolTextureFactor",
new Vector4((
float)VolumeSize.x / VolumeSizePow2.x,
32 (
float)VolumeSize.y / VolumeSizePow2.y,
33 (
float)VolumeSize.z / VolumeSizePow2.z,
46 VolumeSize = this.VolumeInfo.
Size;
49 Debug.Log(
"Volume Controller Configured! " + this.VolumeSizePow2);