Comparing version 0.0.19 to 0.0.20
{ | ||
"name": "ogl", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "WebGL Framework", | ||
@@ -5,0 +5,0 @@ "main": "src", |
@@ -252,3 +252,3 @@ <p align="center"> | ||
- [x] Projection and Raycasting | ||
- [ ] Mouse Flowmap | ||
- [x] Mouse Flowmap | ||
@@ -270,2 +270,3 @@ ### Shading | ||
- [x] Render to texture | ||
- [x] Post FXAA (Fast Approximate Anti-Aliasing) | ||
- [ ] MRT (Multiple Render Targets) | ||
@@ -282,2 +283,5 @@ - [ ] Reflections | ||
### Stencil | ||
- [ ] Stencil Shadows and Mirror | ||
- [ ] Stencil Shadows and Mirror | ||
### Performance | ||
- [x] High mesh count |
@@ -18,3 +18,3 @@ // TODO: Destroy render targets if size changed and exists | ||
geometry = new Geometry(gl, { | ||
position: {size: 3, data: new Float32Array([-1, -1, 0, 3, -1, 0, -1, 3, 0])}, | ||
position: {size: 2, data: new Float32Array([-1, -1, 3, -1, -1, 3])}, | ||
uv: {size: 2, data: new Float32Array([0, 0, 2, 0, 0, 2])}, | ||
@@ -117,22 +117,22 @@ }), | ||
const defaultVertex = ` | ||
attribute vec2 uv; | ||
attribute vec3 position; | ||
attribute vec2 uv; | ||
attribute vec2 position; | ||
varying vec2 vUv; | ||
varying vec2 vUv; | ||
void main() { | ||
vUv = uv; | ||
gl_Position = vec4(position, 1.0); | ||
} | ||
void main() { | ||
vUv = uv; | ||
gl_Position = vec4(position, 0, 1); | ||
} | ||
`; | ||
const defaultFragment = ` | ||
precision highp float; | ||
precision highp float; | ||
uniform sampler2D tMap; | ||
varying vec2 vUv; | ||
uniform sampler2D tMap; | ||
varying vec2 vUv; | ||
void main() { | ||
gl_FragColor = texture2D(tMap, vUv); | ||
} | ||
void main() { | ||
gl_FragColor = texture2D(tMap, vUv); | ||
} | ||
`; |
Sorry, the diff of this file is not supported yet
262835
284