hardwareshader+cameratexture

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
ZZYZX
Developer
Developer
Posts: 14
Joined: Thu Nov 26, 2015 6:10

hardwareshader+cameratexture

Post 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.
ZZYZX
Developer
Developer
Posts: 14
Joined: Thu Nov 26, 2015 6:10

Re: hardwareshader+cameratexture

Post 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)
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: hardwareshader+cameratexture

Post by Graf Zahl »

I can't remember why that is there, but there must have been some reason.
Locked

Return to “GZDoom”