Comments (9)
Yeah, it’s on me. I’ll patch that soon. I won’t close your issue so that I can use it as backlog, if you don’t mind. The patch is not hard to write, it just requires a bit of refactoring, nothing hard. I’ll do that on this weekend if I find enough spare time.
Thanks again for reaching out!
from luminance-rs.
I don’t have renderdoc
right now. I’ll have a look when I get home. What sampler are you using in your shader?
from luminance-rs.
Sampler {
wrap_r: texture::Wrap::Repeat,
wrap_s: texture::Wrap::Repeat,
wrap_t: texture::Wrap::Repeat,
min_filter: texture::MinFilter::Linear,
mag_filter: texture::MagFilter::Linear,
depth_comparison: None,
};
in vec2 fPos;
out vec4 color;
uniform sampler2D tex;
void main() {
color = vec4(texture(tex, fPos).rgb, 1.0);
//color = vec4(1.0, 1.0, 1.0, clamp(fPos.x + fPos.y, 0.0, 1.0));
}
from luminance-rs.
Try with uniform usampler2D tex;
, because your texture has an internal format of RGBA8UI
.
On a more general note, I need to patch the check code for this. Most uniforms would have yielded a type mismatch (you can try it out), but with arrays and textures, I just assume it’s always ok for now.
from luminance-rs.
yep, that was it! thanks a bunch. i checked for all uniform warnings, so i didn't think my uniform types could have been off after i didn't get any more warnings! good to know
from luminance-rs.
OK, I’ll work on that right now.
from luminance-rs.
@tinaun I’ll release a new version of luminance soon but if you want to test with the current HEAD
, you might give it a try! Just use the initial code you posted. You should now have a type mismatch.
from luminance-rs.
awesome!
from luminance-rs.
luminance-0.28 ships with it! :)
from luminance-rs.
Related Issues (20)
- What's the replacement for new_texture_no_texels? HOT 5
- Texture swizzling HOT 1
- Decouple vertex semantics from representation HOT 4
- Intermixing of Tess's with different structures HOT 1
- `Vertex` derive macro obstructs use of the inherent method name `new`
- Placeholder `#repr_ty_name` in derived attribute wrapper type documentation HOT 2
- Incorrect(?) warning when a shader uses a subset of attributes declared in semantics HOT 1
- [luminance-glutin] How to make use of glutin:WindowedContext HOT 3
- luminance-glutin doesn't resize correctly under Wayland
- Depth-only framebuffer causes generated binding code to error?
- Web examples instructions incomplete HOT 1
- Instanced rendering using instance attributes? HOT 1
- Learn luminance book is very out of date HOT 2
- Why GL_ARB_separate_shader_objects? HOT 1
- Pure OpenGL ES renderer? HOT 1
- luminance 0.46.1 needs unpublished luminance-derive HOT 1
- Luminance 0.47 isn't on crates.io HOT 1
- Clearing textures
- Segmentation fault when dropping shader program struct HOT 3
- Fields of Vertex struct being reordered on new rust version results in incorrect render HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luminance-rs.