Half2 x = ((v.vertex.xy + v.vertex.yz) * _UVWaveFrequency) + (TIME.xx * _UVWaveSpeed) įloat3 _pos = worldPos.xyz * _WaveFrequency O.texcoord.xy = TRANSFORM_TEX(mainTexcoords.xy, _MainTex) //根据texture的缩放 Void vert(inout appdata_tcp2 v, out Input o)įloat3 worldPos = mul(unity_ObjectToWorld, v.vertex).xyz ![]() S.atten = data.atten //transfer attenuation to lighting function Gi.lor = _LightColor0.rgb //remove attenuation Gi = UnityGlobalIllumination(data, 1.0, s.Normal) Void LightingToon圜olorsWater_GI(inout SurfaceOutputWater s, UnityGIInput data, inout UnityGI gi) #ifdef UNITY_LIGHT_FUNCTION_APPLY_INDIRECT Ramp = lerp(_SColor.rgb, _HColor.rgb, ramp) Ĭ.rgb = s.Albedo * lightColor.rgb * ramp _SColor = lerp(_HColor, _SColor, _SColor.a) //Shadows intensity through alpha Inline half4 LightingToon圜olorsWater(inout SurfaceOutputWater s, half3 viewDir, UnityGI gi)įixed ndl = max(0, dot(s.Normal, lightDir)) įixed3 ramp = smoothstep(RAMP_THRESHOLD - RAMP_SMOOTH * 0.5, RAMP_THRESHOLD + RAMP_SMOOTH * 0.5, NDL) #pragma instancing_options assumeuniformscaling See for more information about instancing. You need to check 'Enable Instancing' on materials that use the shader. #pragma surface surf Toon圜olorsWater keepalpha vertex:vert nolightmap _MainTex("Main Texture (RGB)", 2D) = "white" ![]() Shader "Toony Colors Pro 2/Examples/Cat Demo/Water" Upgrade NOTE: upgraded instancing buffer 'Props' to new syntax. I'd first check if that file could be the culprit. The crash happens in a file named PositionLongtermFallGauge, which is not part of Obi. I would send over the blend file for the mesh linked to the crash but I don't know the best way to do so. If I changed the flag to a simpler mesh that only has 36 vertices and I do not appear to be crashing anymore. I completely removed the collider from the equation and was still getting crashes in build as soon as the cloth started simulating. NullReferenceException: Object reference not set to an instance of an objectĪt PositionLongtermFallGauge.Awake () in :0 WARNING: Shader Unsupported: 'Toony Colors Pro 2/User/Courier_Shader01_Transparent' - Pass 'Meta' has no vertex shader WARNING: Shader Unsupported: 'Toony Colors Pro 2/User/Courier_Shader01_Transparent_Unlit' - Pass 'Meta' has no vertex shader WARNING: Shader Unsupported: 'Toony Colors Pro 2/User/Courier_Shader01_NoOutline' - Pass 'Meta' has no vertex shader WARNING: Shader Unsupported: 'Standard' - Pass 'META' has no vertex shader WARNING: Shader Unsupported: 'Toony Colors Pro 2/User/Courier_Shader01' - Pass 'Meta' has no vertex shader WARNING: Shader Unsupported: 'Toony Colors Pro 2/User/Courier_Shader01_AltOutline' - Pass 'Meta' has no vertex shader WARNING: Shader Unsupported: 'Legacy Shaders/Diffuse' - Pass 'Meta' has no vertex shader ![]() Renderer: NVIDIA GeForce GTX 1070 (ID=0x1b81) GfxDevice: creating device client threaded=1
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |