Esempio n. 1
0
 public void RecalculateStaticGeometry(FS_ShadowSimple removeShadow, FS_MeshKey meshKey)
 {
     if (shadowMeshesStatic.ContainsKey(meshKey.mat))
     {
         FS_ShadowManagerMesh sm = shadowMeshesStatic[meshKey.mat] as FS_ShadowManagerMesh;
         if (removeShadow != null)
         {
             sm.removeShadow(removeShadow);
         }
         sm.recreateStaticGeometry();
     }
 }
Esempio n. 2
0
 public void RecalculateStaticGeometry(FS_ShadowSimple removeShadow, FS_MeshKey meshKey)
 {
     if (this.shadowMeshesStatic.ContainsKey(meshKey.mat))
     {
         FS_ShadowManagerMesh fS_ShadowManagerMesh = this.shadowMeshesStatic[meshKey.mat];
         if (removeShadow != null)
         {
             fS_ShadowManagerMesh.removeShadow(removeShadow);
         }
         fS_ShadowManagerMesh.recreateStaticGeometry();
     }
 }
Esempio n. 3
0
    public override void OnInspectorGUI()
    {
        EditorGUIUtility.LookLikeControls();
        FS_ShadowManagerMesh smm = (FS_ShadowManagerMesh)target as FS_ShadowManagerMesh;

        if (!smm.gameObject)
        {
            return;
        }
        EditorGUILayout.Separator();
        EditorGUILayout.BeginVertical();
        GUILayout.Label("Number of shadows:" + smm.getNumShadows());
        GUILayout.Label("Static: " + smm.isStatic);
        GUILayout.Label("Material: " + smm.shadowMaterial.name);
        EditorGUILayout.EndVertical();
    }