Mercurial > touhou
diff examples/stdrenderer.rs @ 708:3954801b6299
examples: Update to luminance 0.32.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 08 Sep 2019 17:47:23 +0200 |
parents | 987409d48991 |
children | 2b2376811f46 |
line wrap: on
line diff
--- a/examples/stdrenderer.rs +++ b/examples/stdrenderer.rs @@ -2,7 +2,7 @@ use luminance::blending::{Equation, Fact use luminance::context::GraphicsContext; use luminance::framebuffer::Framebuffer; use luminance::pipeline::BoundTexture; -use luminance::pixel::Floating; +use luminance::pixel::NormUnsigned; use luminance::render_state::RenderState; use luminance::shader::program::{Program, Uniform}; use luminance::tess::{Mode, TessBuilder, TessSliceIndex}; @@ -90,7 +90,7 @@ struct Vertex { #[derive(UniformInterface)] struct ShaderInterface { // the 'static lifetime acts as “anything” here - color_map: Uniform<&'static BoundTexture<'static, Flat, Dim2, Floating>>, + color_map: Uniform<&'static BoundTexture<'static, Flat, Dim2, NormUnsigned>>, #[uniform(name = "mvp")] mvp: Uniform<[[f32; 4]; 4]>,