Commit 7473ef61 authored by 16이상민's avatar 16이상민

Repair: bodyindex always 0 cause first letter of buffer name is big letter

parent c1882494
...@@ -6,8 +6,8 @@ Material: ...@@ -6,8 +6,8 @@ Material:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0} m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0} m_PrefabInternal: {fileID: 0}
m_Name: GreenScreen m_Name: TransparentScreenShader
m_Shader: {fileID: 4800000, guid: b5175284b0ff7764bae573155e1a773f, type: 3} m_Shader: {fileID: 4800000, guid: 2daa4f94cea4bef4fab73f4a5a972b9e, type: 3}
m_ShaderKeywords: m_ShaderKeywords:
m_LightmapFlags: 4 m_LightmapFlags: 4
m_EnableInstancingVariants: 0 m_EnableInstancingVariants: 0
...@@ -18,11 +18,23 @@ Material: ...@@ -18,11 +18,23 @@ Material:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
m_TexEnvs: m_TexEnvs:
- _BackgroundTex: - _BumpMap:
m_Texture: {fileID: 0} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _BaseTex: - _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
...@@ -30,11 +42,35 @@ Material: ...@@ -30,11 +42,35 @@ Material:
m_Texture: {fileID: 0} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _Mask: - _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
m_Floats: m_Floats:
- _Cutoff: 0 - _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors: m_Colors:
- _Color: {r: 0, g: 1, b: 0, a: 0} - _Color: {r: 0.7607844, g: 0.7607844, b: 0.7607844, a: 0}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
fileFormatVersion: 2 fileFormatVersion: 2
guid: 6805a505ebdaf35449ded07154e29f1c guid: a1fba0e040daade4c8e74fa059e8faa2
timeCreated: 1503487250 timeCreated: 1518170142
licenseType: Free licenseType: Free
NativeFormatImporter: NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0 mainObjectFileID: 0
userData: userData:
assetBundleName: assetBundleName:
......
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
Shader "DX11/GreenScreenShader" { Shader "DX11/TransparnetScreenShader" {
Properties { Properties {
_Color ("Main Color", Color) = (1,1,1,1) _Color ("Main Color", Color) = (1,1,1,1)
} }
......
fileFormatVersion: 2 fileFormatVersion: 2
guid: b5175284b0ff7764bae573155e1a773f guid: 2daa4f94cea4bef4fab73f4a5a972b9e
timeCreated: 1503487250 timeCreated: 1518170058
licenseType: Free licenseType: Free
ShaderImporter: ShaderImporter:
externalObjects: {}
defaultTextures: [] defaultTextures: []
userData: userData:
assetBundleName: assetBundleName:
......
...@@ -38,7 +38,7 @@ RenderSettings: ...@@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1 m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0} m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0} m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.37311992, g: 0.38074034, b: 0.35872713, a: 1} m_IndirectSpecularColor: {r: 0.37311953, g: 0.38074014, b: 0.3587274, a: 1}
--- !u!157 &3 --- !u!157 &3
LightmapSettings: LightmapSettings:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -3591,7 +3591,7 @@ MeshRenderer: ...@@ -3591,7 +3591,7 @@ MeshRenderer:
m_LightProbeUsage: 0 m_LightProbeUsage: 0
m_ReflectionProbeUsage: 1 m_ReflectionProbeUsage: 1
m_Materials: m_Materials:
- {fileID: 2100000, guid: 6805a505ebdaf35449ded07154e29f1c, type: 2} - {fileID: 2100000, guid: a1fba0e040daade4c8e74fa059e8faa2, type: 2}
m_StaticBatchInfo: m_StaticBatchInfo:
firstSubMesh: 0 firstSubMesh: 0
subMeshCount: 0 subMeshCount: 0
......
...@@ -392,7 +392,7 @@ MeshRenderer: ...@@ -392,7 +392,7 @@ MeshRenderer:
m_LightProbeUsage: 0 m_LightProbeUsage: 0
m_ReflectionProbeUsage: 1 m_ReflectionProbeUsage: 1
m_Materials: m_Materials:
- {fileID: 2100000, guid: 6805a505ebdaf35449ded07154e29f1c, type: 2} - {fileID: 2100000, guid: a1fba0e040daade4c8e74fa059e8faa2, type: 2}
m_StaticBatchInfo: m_StaticBatchInfo:
firstSubMesh: 0 firstSubMesh: 0
subMeshCount: 0 subMeshCount: 0
......
...@@ -22,7 +22,7 @@ public class CoordinateMapperView : MonoBehaviour ...@@ -22,7 +22,7 @@ public class CoordinateMapperView : MonoBehaviour
DepthBuffer = GenerateBuffer("depthCoordinates", sizeof(float) * 2, DepthBuffer = GenerateBuffer("depthCoordinates", sizeof(float) * 2,
manager.DepthCoordinates, material); manager.DepthCoordinates, material);
BodyIndexBuffer = GenerateBuffer("BodyIndexBuffer", sizeof(float), BodyIndexBuffer = GenerateBuffer("bodyIndexBuffer", sizeof(float),
manager.BodyIndexBuffer, material); manager.BodyIndexBuffer, material);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment