mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
drewcassidy
da1fbf0f2a
• KSP rescales the model object back to 1,1,1 on start, so don't use that for the model that gets scaled • Some refactoring to consolidate property IDs • rename some classes because I am indecisive • Add and Get methods for MaterialPropertyCollection • Make an attempt at a scale culling fix
15 lines
864 B
C#
15 lines
864 B
C#
using UnityEngine;
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
namespace ConformalDecals {
|
|
public static class DecalPropertyIDs {
|
|
public static readonly int _BumpMap = Shader.PropertyToID("_BumpMap");
|
|
public static readonly int _BumpMap_ST = Shader.PropertyToID("_BumpMap_ST");
|
|
public static readonly int _Cull = Shader.PropertyToID("_Cull");
|
|
public static readonly int _Cutoff = Shader.PropertyToID("_Cutoff");
|
|
public static readonly int _DecalNormal = Shader.PropertyToID("_DecalNormal");
|
|
public static readonly int _DecalOpacity = Shader.PropertyToID("_DecalOpacity");
|
|
public static readonly int _DecalTangent = Shader.PropertyToID("_DecalTangent");
|
|
public static readonly int _ProjectionMatrix = Shader.PropertyToID("_ProjectionMatrix");
|
|
}
|
|
} |