Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Universal/runtime render pass #2719

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removed shader wanings
  • Loading branch information
Nzollner committed Dec 4, 2020
commit d485683112ee3312dbd4f416d3343a9ecc484e56
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Shader "Custom/RenderFeature/KawaseBlur"
Varyings vert(Attributes v)
{
Varyings o;
o.vertex = TransformObjectToHClip(v.vertex);
o.vertex = TransformObjectToHClip(v.vertex.xyz);
o.uv = TRANSFORM_TEX(v.uv, _MainTex);
return o;
}
Expand All @@ -49,6 +49,7 @@ Shader "Custom/RenderFeature/KawaseBlur"
float i = _offset;

half4 col;
col.w = 1.0f;
col.rgb = tex2D(_MainTex, input.uv).rgb;
col.rgb += tex2D(_MainTex, input.uv + float2(i, i) * res).rgb;
col.rgb += tex2D(_MainTex, input.uv + float2(i, -i) * res).rgb;
Expand Down