Quantcast
Channel: Latest Questions by Selzier
Viewing all articles
Browse latest Browse all 34

Shader: 1 Base Texture Overlaid by 1 Transparent Texture.

$
0
0
Trying to write a shader that takes 2 textures. The first is a base layer which only displays RGB data and does not have any transparency. Just a basic diffuse:

![alt text][1]
The transparent texture is a PNG with an alpha channel:
![alt text][2]
The transparent texture is overlaid over the baseTexture, in the same exact manner that Photoshop layers work.

The final result would be a diffuse image that looks exactly like these 2 layers would appear in Photoshop: ![alt text][3] What's the most basic / fastest way to achieve this in CG shader code? [1]: /storage/temp/173273-a-basetexture.jpg [2]: /storage/temp/173274-transparentlayer.png [3]: https://i.postimg.cc/JnVYC0Zb/A-Full-Render.jpg

Viewing all articles
Browse latest Browse all 34

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>