Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- v2fMultiTap vertMultiTap(appdata_img v)
- {
- /* // THIS IS WHAT IT USED TO BE
- v2fMultiTap o;
- o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
- float3 size = float3(_MainTex_TexelSize.x, -_MainTex_TexelSize.x, 0);
- o.uv[0] = v.texcoord.xy;
- o.uv[1] = v.texcoord.xy +size.xz;
- o.uv[2] = v.texcoord.xy +size.yz;
- o.uv[3] = v.texcoord.xy +size.zx;
- o.uv[4] = v.texcoord.xy +size.zy;
- return o;
- */
- /* THIS IS WHAT IT IS NOW - I got this from https://code.google.com/p/starhopper/source/browse/trunk/Starhopper/Assets/Standard+Assets/Image+Effects+(Pro+Only)/_Sources/Shaders/_BloomAndFlares/BlendForBloom.shader?r=12 */
- v2fMultiTap o;
- o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
- o.uv[0] = v.texcoord.xy;
- o.uv[1] = v.texcoord.xy + _MainTex_TexelSize.xy * 0.5;
- o.uv[2] = v.texcoord.xy - _MainTex_TexelSize.xy * 0.5;
- o.uv[3] = v.texcoord.xy - _MainTex_TexelSize.xy * half2(1, -1) * 0.5;
- o.uv[4] = v.texcoord.xy + _MainTex_TexelSize.xy * half2(1, -1) * 0.5;
- return o;
- }
Advertisement
Add Comment
Please, Sign In to add comment