629 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			629 B
		
	
	
	
	
	
	
	
title, date, excerpt, tags, rating
| title | date | excerpt | tags | rating | 
|---|---|---|---|---|
| 给Pass传入SceneColor | 2022-10-10 15:11:46 | Rendering | ⭐ | 
添加变量
SHADER_PARAMETER_RDG_TEXTURE(Texture2D, SceneColorTexture)
SHADER_PARAMETER_SAMPLER(SamplerState, SceneColorTextureSampler)
传入变量
PassParameters->SceneColorTexture = SceneColorTexture.Target;  
PassParameters->SceneColorTextureSampler = TStaticSamplerState<>::GetRHI();
Shader
Texture2D       SceneColorTexture;
SamplerState    SceneColorTextureSampler;
float4 SceneColor = SceneColorTexture.SampleLevel(SceneColorTextureSampler, SceneBufferUV, 0);