AmplifyCreations / AmplifyShaderEditor-Feedback

4 stars 0 forks source link

New – HD Scene Color #68

Closed Dawie3565 closed 2 months ago

Dawie3565 commented 2 years ago

https://docs.unity3d.com/Packages/com.unity.shadergraph@13.1/manual/HD-Scene-Color-Node.html

Dawie3565 commented 2 years ago

HD-Scene-Color-Node.zip

Dawie3565 commented 2 months ago

output for this Unity SG node is same as ASE "Grab Screen Color" Node

float4 ASEHDSampleSceneColor(float2 uv, float lod, float exposureMultiplier) {

if defined(REQUIRE_OPAQUE_TEXTURE) && defined(_SURFACE_TYPE_TRANSPARENT) && defined(SHADERPASS) && (SHADERPASS != SHADERPASS_LIGHT_TRANSPORT)

return float4( SampleCameraColor(uv, lod) * exposureMultiplier, 1.0 );

endif

return float4(0.0, 0.0, 0.0, 1.0); }

Closed action