Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override output size #10

Open
zed9h opened this issue Sep 5, 2018 · 1 comment
Open

Override output size #10

zed9h opened this issue Sep 5, 2018 · 1 comment

Comments

@zed9h
Copy link

zed9h commented Sep 5, 2018

If I have a shader like this:

float4 mainImage(VertData v_in) : TARGET {
	return float4(
		image.Sample(textureSampler, v_in.uv * float2(0.5,1)).rgb, 
		image.Sample(textureSampler, v_in.uv * float2(0.5,1) + float2(0.5,0)).r
	);
}

the output should be half the size, but the shader is computing the full size, just to be resized by a transform afterwards.

@nleseul
Copy link
Owner

nleseul commented Dec 2, 2018

Good suggestion, and probably not too hard to add. I'd just need to come up with a way to add this option without cluttering the options more than they already are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants