Page 1 of 1

hardwareshader+cameratexture

Posted: Thu Nov 26, 2015 6:21
by ZZYZX
hi graf

is there any reason for GZDoom to do this separate handling for canvas and non-canvas textures?
I tried to quickly browse the code but from what I can tell cameratexture is simple GL_TEXTURE_2D that's not much different from any other "real" texture... and thus there's no point to disallow shaders here IMO.

Re: hardwareshader+cameratexture

Posted: Fri Oct 21, 2016 20:55
by ZZYZX
bump. This is important for fullscreen effects. hello.
Using shaders on cameratextures would also enable having cameratextures of non-square shape. This is very useful as well.

So any reason this special handling is employed in GZDoom? (and could you remove this special handling?)
(I'd gladly make a pull request, but I can't compile GZDoom and thus can't test)

Re: hardwareshader+cameratexture

Posted: Fri Oct 21, 2016 21:10
by Graf Zahl
I can't remember why that is there, but there must have been some reason.