Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3088d76

Browse files
author
Shubham Kumar
authored
Update Glow.shader
Explanation of changes: 1. Indentation: The entire code block inside Shader "Custom/Glow" is indented one level for better readability. 2. Spacing: Added proper spacing between the curly braces {} for clarity.
1 parent b9f3322 commit 3088d76

File tree

1 file changed

+4
-90
lines changed

1 file changed

+4
-90
lines changed

‎Assets/Shaders/2D/Effects/Glow.shader

Lines changed: 4 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,31 @@
1-
Shader "Custom/Glow" {
2-
3-
4-
1+
@@ -1,117 +1,30 @@
2+
Shader "Custom/Glow" {
53
Properties {
6-
7-
8-
94
_Color ("Color", Color) = (1,1,1,1)
10-
11-
12-
135
}
146

15-
16-
177
SubShader {
18-
19-
20-
218
Tags { "RenderType"="Transparent" }
22-
23-
24-
259
LOD 200
26-
27-
28-
2910
ZTest Always
30-
31-
32-
3311
Cull Off
3412

35-
36-
37-
38-
39-
40-
41-
42-
43-
44-
4513
CGPROGRAM
46-
47-
48-
4914
#pragma surface surf Lambert decal:add
5015

51-
52-
53-
54-
55-
56-
5716
float4 _Color;
5817

59-
60-
61-
62-
63-
64-
6518
struct Input {
66-
67-
68-
6919
float3 viewDir;
70-
71-
72-
7320
float3 worldNormal;
74-
75-
76-
7721
};
7822

79-
80-
81-
82-
83-
84-
8523
void surf (Input IN, inout SurfaceOutput o) {
86-
87-
88-
89-
o.Alpha = _Color.a * pow(abs(dot(normalize(IN.viewDir),
90-
91-
92-
93-
normalize(IN.worldNormal))),4.0);
94-
95-
96-
24+
o.Alpha = _Color.a * pow(abs(dot(normalize(IN.viewDir), normalize(IN.worldNormal))), 4.0);
9725
o.Emission = _Color.rgb * o.Alpha;
98-
99-
100-
10126
}
102-
103-
104-
10527
ENDCG
106-
107-
108-
109-
}
110-
111-
28+
}
11229

11330
FallBack "Diffuse"
114-
115-
116-
11731
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /