Update README.md
This commit is contained in:
parent
1cb2ab5f82
commit
d058c30d02
3 changed files with 34 additions and 0 deletions
12
README.md
Normal file
12
README.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
## USEFULL TOOLS
|
||||
|
||||
- RHAI [(Embedded Scripting for Rust)](https://github.com/rhaiscript/rhai)
|
||||
- GFX [(Low-level, cross-platform graphics and compute abstraction library)](https://github.com/gfx-rs/gfx)
|
||||
- WINIT [(Cross-platform window creation and management)](https://github.com/rust-windowing/winit)
|
||||
- RUSTTYPE [(Font lib)](https://gitlab.redox-os.org/redox-os/rusttype)
|
||||
- SPECS [(Entity-Component System)](https://github.com/amethyst/specs)
|
||||
- PAREEN [(Animation)](https://github.com/leod/pareen)
|
||||
|
||||
## USEFULL LINK
|
||||
|
||||
- https://arewegameyet.rs/
|
0
engine_core/shaders/rect.frag
Normal file
0
engine_core/shaders/rect.frag
Normal file
22
engine_core/shaders/rect.vert
Normal file
22
engine_core/shaders/rect.vert
Normal file
|
@ -0,0 +1,22 @@
|
|||
#version 150 core
|
||||
|
||||
uniform sampler2D t_Awesome;
|
||||
uniform int i_Switch;
|
||||
|
||||
in vec4 v_Color;
|
||||
in vec2 v_Uv;
|
||||
out vec4 Target0;
|
||||
|
||||
void main() {
|
||||
vec3 aw = texture(t_Awesome, v_Uv).rgb;
|
||||
|
||||
if(i_Switch == 0) {
|
||||
if(aw == vec3(0.0, 0.0, 0.0)) {
|
||||
Target0 = 0.20 * v_Color;
|
||||
} else {
|
||||
Target0 = vec4(aw, 1.0);
|
||||
}
|
||||
} else {
|
||||
Target0 = v_Color;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue