1.add cnp.gbuffer
This commit is contained in:
parent
94b68bb2ec
commit
625dde9ca7
@ -20,8 +20,11 @@
|
||||
|
||||
[gbuffer_to_attribute]
|
||||
|
||||
BaseColor =gb_color_metallic.rgb;
|
||||
Metallic =gb_color_metallic.a;
|
||||
vec4 gb_cm=texture(gb_color_metallic,FragmentPosition);
|
||||
vec4 gb_cr=texture(gb_normal_roughness,FragmentPosition);
|
||||
|
||||
Normal =gb_normal_roughness.rgb;
|
||||
Roughness =gb_normal_roughness.a;
|
||||
BaseColor =gb_cm.rgb;
|
||||
Metallic =gb_cm.a;
|
||||
|
||||
Normal =gb_cr.rgb;
|
||||
Roughness =gb_cr.a;
|
||||
|
23
res/shader/cnp.gbuffer
Normal file
23
res/shader/cnp.gbuffer
Normal file
@ -0,0 +1,23 @@
|
||||
[attribute]
|
||||
|
||||
vec3 BaseColor;
|
||||
vec3 Normal;
|
||||
vec3 Position;
|
||||
|
||||
[gbuffer]
|
||||
|
||||
vec3 gb_color;
|
||||
vec3 gb_normal;
|
||||
vec3 gb_position;
|
||||
|
||||
[attribute_to_gbuffer]
|
||||
|
||||
gb_color=BaseColor;
|
||||
gb_normal=Normal;
|
||||
gb_position=Position;
|
||||
|
||||
[gbuffer_to_attribute]
|
||||
|
||||
BaseColor =texture(gb_color, FragmentPosition);
|
||||
Normal =texture(gb_normal, FragmentPosition);
|
||||
Position =texture(gb_position, FragmentPosition);
|
Loading…
x
Reference in New Issue
Block a user