想请问下关于书中第12章屏幕后处理效果之运动模糊中我的两个个疑问 我理解您的思路应该是当前帧和前一帧数据做一个accumulation。用到了两个Pass。 第一个问题: 您用到accumulationTexture.MarkRestoreExpected()这样一个函数,网上搜的内容也比较少,看你的解释是不让 ...
#ifdef USING_DIRECTIONAL_LIGHT fixed atten = 1.0; #else float3 lightCoord = mul(_LightMatrix0, float4(i.worldPos, 1)).xyz; fixed atten = tex2D(_LightTexture0, dot ...