mittsu 0.1.7 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +20 -0
- data/circle.yml +5 -5
- data/lib/mittsu/core/raycaster.rb +5 -5
- data/lib/mittsu/materials.rb +2 -0
- data/lib/mittsu/materials/point_cloud_material.rb +53 -0
- data/lib/mittsu/materials/sprite_material.rb +53 -0
- data/lib/mittsu/math/euler.rb +1 -1
- data/lib/mittsu/math/ray.rb +0 -1
- data/lib/mittsu/objects.rb +2 -0
- data/lib/mittsu/objects/mesh.rb +54 -28
- data/lib/mittsu/objects/point_cloud.rb +100 -0
- data/lib/mittsu/objects/sprite.rb +53 -0
- data/lib/mittsu/renderers/glfw_window.rb +8 -0
- data/lib/mittsu/renderers/opengl/core/buffer_geometry.rb +11 -0
- data/lib/mittsu/renderers/opengl/core/geometry.rb +119 -17
- data/lib/mittsu/renderers/opengl/materials/point_cloud_material.rb +27 -0
- data/lib/mittsu/renderers/opengl/objects/line.rb +1 -1
- data/lib/mittsu/renderers/opengl/objects/point_cloud.rb +39 -0
- data/lib/mittsu/renderers/opengl/objects/sprite.rb +12 -0
- data/lib/mittsu/renderers/opengl/opengl_buffer.rb +4 -0
- data/lib/mittsu/renderers/opengl/opengl_debug.rb +6 -6
- data/lib/mittsu/renderers/opengl/opengl_geometry_like.rb +1 -0
- data/lib/mittsu/renderers/opengl/opengl_helper.rb +7 -7
- data/lib/mittsu/renderers/opengl/opengl_implementations.rb +5 -0
- data/lib/mittsu/renderers/opengl/plugins/sprite_fragment.glsl +38 -0
- data/lib/mittsu/renderers/opengl/plugins/sprite_plugin.rb +250 -0
- data/lib/mittsu/renderers/opengl/plugins/sprite_vertex.glsl +31 -0
- data/lib/mittsu/renderers/opengl_renderer.rb +8 -28
- data/lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_fragment.rbsl +27 -0
- data/lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_uniforms.rbslu +2 -0
- data/lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_vertex.rbsl +25 -0
- data/lib/mittsu/version.rb +1 -1
- metadata +18 -3
@@ -0,0 +1,25 @@
|
|
1
|
+
uniform float size;
|
2
|
+
// uniform float scale; // TODO
|
3
|
+
|
4
|
+
#include common
|
5
|
+
#include color_pars_vertex
|
6
|
+
#include shadowmap_pars_vertex
|
7
|
+
#include logdepthbuf_pars_vertex
|
8
|
+
|
9
|
+
void main() {
|
10
|
+
#include color_vertex
|
11
|
+
|
12
|
+
vec4 mvPosition = modelViewMatrix * vec4(position, 1.0);
|
13
|
+
|
14
|
+
// #ifdef USE_SIZEATTENUATION
|
15
|
+
// gl_PointSize = size * (scale / length(mvPosition.xyz));
|
16
|
+
// #else
|
17
|
+
gl_PointSize = size;
|
18
|
+
// #endif
|
19
|
+
|
20
|
+
gl_Position = projectionMatrix * mvPosition;
|
21
|
+
|
22
|
+
#include logdepthbuf_vertex
|
23
|
+
#include worldpos_vertex
|
24
|
+
#include shadowmap_vertex
|
25
|
+
}
|
data/lib/mittsu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mittsu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opengl-bindings
|
@@ -149,6 +149,7 @@ files:
|
|
149
149
|
- ".codeclimate.yml"
|
150
150
|
- ".gitignore"
|
151
151
|
- ".rubocop.yml"
|
152
|
+
- ".travis.yml"
|
152
153
|
- CODE_OF_CONDUCT.md
|
153
154
|
- Gemfile
|
154
155
|
- LICENSE.txt
|
@@ -209,7 +210,9 @@ files:
|
|
209
210
|
- lib/mittsu/materials/mesh_face_material.rb
|
210
211
|
- lib/mittsu/materials/mesh_lambert_material.rb
|
211
212
|
- lib/mittsu/materials/mesh_phong_material.rb
|
213
|
+
- lib/mittsu/materials/point_cloud_material.rb
|
212
214
|
- lib/mittsu/materials/shader_material.rb
|
215
|
+
- lib/mittsu/materials/sprite_material.rb
|
213
216
|
- lib/mittsu/math.rb
|
214
217
|
- lib/mittsu/math/box2.rb
|
215
218
|
- lib/mittsu/math/box3.rb
|
@@ -234,10 +237,13 @@ files:
|
|
234
237
|
- lib/mittsu/objects/group.rb
|
235
238
|
- lib/mittsu/objects/line.rb
|
236
239
|
- lib/mittsu/objects/mesh.rb
|
240
|
+
- lib/mittsu/objects/point_cloud.rb
|
241
|
+
- lib/mittsu/objects/sprite.rb
|
237
242
|
- lib/mittsu/renderers.rb
|
238
243
|
- lib/mittsu/renderers/generic_lib.rb
|
239
244
|
- lib/mittsu/renderers/glfw_lib.rb
|
240
245
|
- lib/mittsu/renderers/glfw_window.rb
|
246
|
+
- lib/mittsu/renderers/opengl/core/buffer_geometry.rb
|
241
247
|
- lib/mittsu/renderers/opengl/core/geometry.rb
|
242
248
|
- lib/mittsu/renderers/opengl/core/object_3d.rb
|
243
249
|
- lib/mittsu/renderers/opengl/lights/ambient_light.rb
|
@@ -252,10 +258,13 @@ files:
|
|
252
258
|
- lib/mittsu/renderers/opengl/materials/mesh_lambert_material.rb
|
253
259
|
- lib/mittsu/renderers/opengl/materials/mesh_phong_material.rb
|
254
260
|
- lib/mittsu/renderers/opengl/materials/opengl_material_basics.rb
|
261
|
+
- lib/mittsu/renderers/opengl/materials/point_cloud_material.rb
|
255
262
|
- lib/mittsu/renderers/opengl/materials/shader_material.rb
|
256
263
|
- lib/mittsu/renderers/opengl/objects/group.rb
|
257
264
|
- lib/mittsu/renderers/opengl/objects/line.rb
|
258
265
|
- lib/mittsu/renderers/opengl/objects/mesh.rb
|
266
|
+
- lib/mittsu/renderers/opengl/objects/point_cloud.rb
|
267
|
+
- lib/mittsu/renderers/opengl/objects/sprite.rb
|
259
268
|
- lib/mittsu/renderers/opengl/opengl_buffer.rb
|
260
269
|
- lib/mittsu/renderers/opengl/opengl_debug.rb
|
261
270
|
- lib/mittsu/renderers/opengl/opengl_default_target.rb
|
@@ -270,6 +279,9 @@ files:
|
|
270
279
|
- lib/mittsu/renderers/opengl/opengl_shader.rb
|
271
280
|
- lib/mittsu/renderers/opengl/opengl_state.rb
|
272
281
|
- lib/mittsu/renderers/opengl/plugins/shadow_map_plugin.rb
|
282
|
+
- lib/mittsu/renderers/opengl/plugins/sprite_fragment.glsl
|
283
|
+
- lib/mittsu/renderers/opengl/plugins/sprite_plugin.rb
|
284
|
+
- lib/mittsu/renderers/opengl/plugins/sprite_vertex.glsl
|
273
285
|
- lib/mittsu/renderers/opengl/scenes/scene.rb
|
274
286
|
- lib/mittsu/renderers/opengl/textures/compressed_texture.rb
|
275
287
|
- lib/mittsu/renderers/opengl/textures/cube_texture.rb
|
@@ -345,6 +357,9 @@ files:
|
|
345
357
|
- lib/mittsu/renderers/shaders/shader_lib/lambert/lambert_fragment.rbsl
|
346
358
|
- lib/mittsu/renderers/shaders/shader_lib/lambert/lambert_uniforms.rbslu
|
347
359
|
- lib/mittsu/renderers/shaders/shader_lib/lambert/lambert_vertex.rbsl
|
360
|
+
- lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_fragment.rbsl
|
361
|
+
- lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_uniforms.rbslu
|
362
|
+
- lib/mittsu/renderers/shaders/shader_lib/particle_basic/particle_basic_vertex.rbsl
|
348
363
|
- lib/mittsu/renderers/shaders/shader_lib/phong/phong_fragment.rbsl
|
349
364
|
- lib/mittsu/renderers/shaders/shader_lib/phong/phong_uniforms.rbslu
|
350
365
|
- lib/mittsu/renderers/shaders/shader_lib/phong/phong_vertex.rbsl
|
@@ -384,7 +399,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
384
399
|
requirements:
|
385
400
|
- OpenGL 3.3+ capable hardware and drivers
|
386
401
|
rubyforge_project:
|
387
|
-
rubygems_version: 2.
|
402
|
+
rubygems_version: 2.6.8
|
388
403
|
signing_key:
|
389
404
|
specification_version: 4
|
390
405
|
summary: 3D Graphics Library for Ruby
|