コード例 #1
0
 void AddDecalQuad()
 {
     // create mesh
     DecalBuilder.CreateDecalMeshQuad();
     // get decal
     DecalList.Add(DecalBuilder.decal);
 }
コード例 #2
0
 void AddDecalSkinned()
 {
     // create mesh
     DecalBuilder.CreateDecalMeshSkinned(SkiMesh);
     // get decal
     DecalList.Add(DecalBuilder.decal);
 }
コード例 #3
0
 void AddDecalStatic()
 {
     // create a mesh
     DecalBuilder.CreateDecalMeshStatic();
     // get decal
     DecalList.Add(DecalBuilder.decal);
 }
コード例 #4
0
        public void AddDecalQuad(DecalDefinition decalDefinition, Vector3 direction, Vector3 point, float size, float angle)
        {
            // set globals
            DecalBuilder.SetUp(DecalType.Quad,
                               gameObject,
                               ref vertices,
                               ref triangles,
                               decalDefinition,
                               direction,
                               point,
                               size,
                               angle,
                               -1,
                               0,
                               1);

            Process(true);
        }
コード例 #5
0
        public void AddDecal(DecalDefinition decalDefinition, Vector3 direction, Vector3 point)
        {
            // set globals
            DecalBuilder.SetUp(decType,
                               gameObject,
                               ref vertices,
                               ref triangles,
                               decalDefinition,
                               direction,
                               point,
                               decalDefinition.size,
                               decalDefinition.randomAngle ? Random.Range(0, 360) : decalDefinition.angle,
                               decalDefinition.normalFactor,
                               decalDefinition.pointOffset,
                               decalDefinition.depth);

            Process();
        }
コード例 #6
0
        public void AddDecal(DecalDefinition decalDefinition, Vector3 direction, Vector3 point, float size, float angle, float normalFactor = 0, float pointBackwardOffset = 0.25f, float depth = 1)
        {
            // set globals
            DecalBuilder.SetUp(decType,
                               gameObject,
                               ref vertices,
                               ref triangles,
                               decalDefinition,
                               direction,
                               point,
                               size,
                               angle,
                               normalFactor,
                               pointBackwardOffset,
                               depth);

            Process();
        }
コード例 #7
0
        public void AddDecalQuad(DecalDefinition decalDefinition, Vector3 direction, Vector3 point)
        {
            // set globals
            DecalBuilder.SetUp(DecalType.Quad,
                               gameObject,
                               ref vertices,
                               ref triangles,
                               decalDefinition,
                               direction,
                               point,
                               decalDefinition.size,
                               decalDefinition.randomAngle ? Random.Range(0, 360) : decalDefinition.angle,
                               -1,
                               0,
                               1);

            Process(true);
        }