Blur shader

Started by
9 comments, last by MJP 9 years, 7 months ago

1. Samplers are generally only useful if you need filtering, or want special clamp/wrap/border addressing modes. For your case, not using a sampler is easier since you always want to load at exact texel locations.

2. Invalid addresses will return 0's when loading from textures or buffers. If that's not desirable, you should clamp your address manually to [0, textureSize - 1].

This topic is closed to new replies.

Advertisement