unreal procedure texture 輸出到rendertarget
主要使用rendertarget

把color的眼睛勾上,就可以在運(yùn)行的主界面看到

然后運(yùn)行,就能看到結(jié)果了。

然后是shader,有個(gè)摳腳小知識(shí)。

像素輸出到emissive color上,但是不是base color。
base color需要有光照上去,然后反射光,因?yàn)闊o(wú)光源,就只能自發(fā)光了。
因?yàn)閡nreal是高度模擬現(xiàn)實(shí)發(fā)光,不在是寫(xiě)opengl的顏色自己定了。
如果鏈接base color ,因?yàn)闆](méi)有光源,渲染的rendertarget返回一團(tuán)黑。
但是在unreal的material中不會(huì)那樣,因?yàn)樗詣?dòng)處理為0~255。
標(biāo)簽: