|
|
|
|
|
|
Gizmos.color = k_GizmoThemeColorExtentFace; |
|
|
|
Gizmos.DrawSphere(reflectionProbe.center, reflectionData.influenceSphereRadius); |
|
|
|
Gizmos.color = k_GizmoThemeColorInfluenceBlendFace; |
|
|
|
Gizmos.DrawSphere(reflectionProbe.center, reflectionData.influenceSphereRadius - reflectionData.sphereBlendRadiusOffset); |
|
|
|
Gizmos.DrawSphere(reflectionProbe.center, reflectionData.influenceSphereRadius + reflectionData.sphereBlendRadiusOffset); |
|
|
|
} |
|
|
|
|
|
|
|
Gizmos.matrix = Matrix4x4.identity; |
|
|
|
|
|
|
if (reflectionData.influenceShape == ReflectionInfluenceShape.Box) |
|
|
|
Gizmos.DrawCube(reflectionProbe.center + reflectionData.boxBlendNormalCenterOffset, reflectionProbe.size + reflectionData.boxBlendNormalSizeOffset); |
|
|
|
if (reflectionData.influenceShape == ReflectionInfluenceShape.Sphere) |
|
|
|
Gizmos.DrawSphere(reflectionProbe.center, reflectionData.influenceSphereRadius - reflectionData.sphereBlendNormalRadiusOffset); |
|
|
|
Gizmos.DrawSphere(reflectionProbe.center, reflectionData.influenceSphereRadius + reflectionData.sphereBlendNormalRadiusOffset); |
|
|
|
|
|
|
|
Gizmos.matrix = Matrix4x4.identity; |
|
|
|
Gizmos.color = oldColor; |
|
|
|
|
|
|
Gizmos.DrawWireSphere(reflectionProbe.center, reflectionData.influenceSphereRadius); |
|
|
|
|
|
|
|
Gizmos.color = reflectionProbe.isActiveAndEnabled ? k_GizmoThemeColorInfluenceBlend : k_GizmoThemeColorDisabled; |
|
|
|
Gizmos.DrawWireSphere(reflectionProbe.center, reflectionData.influenceSphereRadius - reflectionData.sphereBlendRadiusOffset); |
|
|
|
Gizmos.DrawWireSphere(reflectionProbe.center, reflectionData.influenceSphereRadius + reflectionData.sphereBlendRadiusOffset); |
|
|
|
Gizmos.DrawWireSphere(reflectionProbe.center, reflectionData.influenceSphereRadius - reflectionData.sphereBlendNormalRadiusOffset); |
|
|
|
Gizmos.DrawWireSphere(reflectionProbe.center, reflectionData.influenceSphereRadius + reflectionData.sphereBlendNormalRadiusOffset); |
|
|
|
|
|
|
|
Gizmos.matrix = Matrix4x4.identity; |
|
|
|
} |
|
|
|