Experiment: 2 maps in 1 channel

preview_player
Показать описание
IMPORTANT: Turn SRGB off for the imported texture!

I put two grayscale images in only ONE texture channel by looking at the color values from a binary perspective. This works but only for very specific usecases.

Рекомендации по теме
Комментарии
Автор

Very good, Im impressed you take another totally different way. On my technique the big con is the texture compression, I must use hdr to mantain the bits not be processed. The problem with gradients I theorize is I cut bits of information the quality down very fast, almost at square by pixel.

turbocheke
Автор

Around the 10min mark, when you start the bit ops, why not just use AND bit masks for this?

Joviex
Автор

Basicly the problem with most tricks like this is that they go against the grain of engine optimisation. I supose you could write new optmisation to take this techinque into account...not sure it would be worth the effort though ^^

LtKharn
Автор

I am not sure to understand why make it so complicated ^^ Why don't just map the first image to use values between 0 and 127, and the second one to use values between 127 and 255. Like this, you have your 2 images, you have 127 (instead of 15 if I understood correctly) variations for each images and it is seems pretty easy to extract it in shader. Did I miss something?

Begounet