bevy/crates/bevy_pbr/src
Philipp Mildenberger ad546a9502 Fix pbr shader compiliation error, #version has to be in the first line (#1884)
I've had problems with compiling and running the pbr example:

```
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Compilation("glslang_shader_preprocess:\nInfo log:\nERROR: 0:40: \'#version\' : must occur first in shader \nERROR: 0:40: \'#version\' : bad profile name; use es, core, or compatibility \nERROR: 0:40: \'#version\' : bad tokens following profile -- expected newline \nERROR: 3 compilation errors.  No code generated.\n\n\nDebug log:\n\n")', crates/bevy_render/src/pipeline/pipeline_compiler.rs:161:22
```

I've checked each shader, and only one shader hasn't had `#version` in the first line.

This change fixed my issue.
2021-04-14 23:39:57 +00:00
..
render_graph Fix pbr shader compiliation error, #version has to be in the first line (#1884) 2021-04-14 23:39:57 +00:00
entity.rs Rename Light => PointLight and remove unused properties (#1778) 2021-04-13 02:21:24 +00:00
lib.rs Rename Light => PointLight and remove unused properties (#1778) 2021-04-13 02:21:24 +00:00
light.rs Rename Light => PointLight and remove unused properties (#1778) 2021-04-13 02:21:24 +00:00
material.rs Add PBR textures (#1632) 2021-03-26 21:00:34 +00:00