Lolbot
7e4da3d634
fixed 27 files out of 2315:
- removed 0 CR characters
- removed 188 trailing whitespaces
- replaced 537 tabs with spaces
pirms 13 gadiem
Benjamin ‘Touky’ Huet
ad275175b8
Tweak to prevent tri_to_process.Last().m1 emptying.
pirms 13 gadiem
Benjamin ‘Touky’ Huet
1038fa7fbe
Small MeshCsg return FIX
pirms 13 gadiem
Benjamin ‘Touky’ Huet
6db0694db4
Revert shiny.lolfx to previous, monogolo-commit.
pirms 13 gadiem
Benjamin ‘Touky’ Huet
4393a43752
Added CSG v0.001a : not optimized, too much operation makes it slow. triangle count is not optimized.
Useage : "...[.... csg*]" equals "current mesh -CSG- the mesh in the braces".
Keywords : CsgUnion<csgu>, CsgSubstract<csgs>, CsgAnd<csga>, CsgXor<csgx>
TODO : cleanup useless code.
TODO : Some bugs are still present, some face that disappear should not.
TODO : Correct epsilon useage (see geometry files).
TODO : Coplanar face are not handled -at all-.
TODO : Vertex count goes through the roof in case of a Xor.
pirms 13 gadiem
jeunathe
08e81c93d1
coding style my ass
pirms 13 gadiem
jeunathe
504f9a4ca2
Update EasyMesh.Convert() method.
Now takes an optional shader
pirms 13 gadiem
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
pirms 13 gadiem
Sam Hocevar
7fa661a2fd
easymesh: motherfucking planetary gears demo.
pirms 13 gadiem
Sam Hocevar
662148406f
easymesh: allow central holes in gears as well as internal gears.
pirms 13 gadiem
Benjamin ‘Touky’ Huet
5e5c8c4e25
specular on cube light. Not the correct effect.
pirms 13 gadiem
Benjamin ‘Touky’ Huet
924a2afbbe
the stupidest idea of the day : the cube light, specular still missing.
pirms 13 gadiem
Benjamin ‘Touky’ Huet
7c0134ea12
shiny.lolfx now has a PointLight & a DirectionalLight.
Sorry for all the fine projects that use this shader !
pirms 13 gadiem
Sam Hocevar
573c5053d9
easymesh: fix point light handling.
pirms 13 gadiem
Benjamin ‘Touky’ Huet
828734c3f2
"Point light" Tweak
pirms 13 gadiem
Benjamin ‘Touky’ Huet
8cde92fd2e
first commit in a while, small test in ShinyLol
pirms 13 gadiem
Benjamin ‘Touky’ Huet
ea517c2926
Added tsw (ToggleScaleWinding) command in EasyMesh Parser to make old-school celShading contour.
pirms 13 gadiem
Sam Hocevar
4a6d092a74
mesh: start working on mesh and submesh stuff.
pirms 13 gadiem
Sam Hocevar
ad00a34984
gpu: add support for triangle strips and fans, and change the DrawElement
calls so that they take a number of vertices or indexes, not elements.
pirms 13 gadiem
Sam Hocevar
787c96b47c
lolfx: improve the LolFx compiler, including error reporting. We can now
successfully parse a few of our full GLSL/HLSL shaders.
pirms 13 gadiem
Sam Hocevar
549566cbf1
lolfx: use square brackets to indicate shader sections.
pirms 13 gadiem
Sam Hocevar
4cee96d09d
easymesh: use "ato" for torus, because "at" is already for triangle.
pirms 13 gadiem
Lolbot
23807ea88e
fixed 23 files out of 277:
- fixed 1270 CR characters
- fixed 56 trailing spaces
- fixed 5085 tabs
pirms 13 gadiem
Sam Hocevar
caba2eb28f
easymesh: minor torus mesh tweaks.
pirms 13 gadiem
Sam Hocevar
38364a0bd6
easymesh: first shot at a simple, flat shaded torus.
pirms 13 gadiem
Sam Hocevar
e22e905dec
easymesh: fix an data corruption with scaling along a single axis.
pirms 13 gadiem
Sam Hocevar
3bfbb6c408
build: fix shitloads of warnings.
pirms 13 gadiem
Cédric Lecacheur
4e7af3279c
optim radialJitter
pirms 13 gadiem
Cédric Lecacheur
82bb4cd6a3
EsayMesh : RadialJitter func & demo added
pirms 13 gadiem
Sam Hocevar
291119d087
easymesh: per-fragment lighting in the HLSL shader (PS3, Xbox 360).
pirms 13 gadiem
Sam Hocevar
fd77cb00f2
easymesh: fragment-based lighting.
pirms 13 gadiem
Sam Hocevar
6cb1db5188
easymesh: make hex colour command arguments case-insensitive.
pirms 13 gadiem
Sam Hocevar
fdf946042a
easymesh: fix the non-uniform sphere scaling and enforce odd numbers
of capsule divisions.
pirms 13 gadiem
Sam Hocevar
f74b85fcf7
tutorial: test some advanced shapes for easymesh.
pirms 13 gadiem
Sam Hocevar
837e56435d
easymesh: fix the specular highlight in the OpenGL shader.
pirms 13 gadiem
Sam Hocevar
23ab462042
gpu: try to patch some simple GLSL shaders on the fly so that they
work on OpenGL ES contexts.
pirms 13 gadiem
Sam Hocevar
a36e930a87
easymesh: allow the shader to build on GL ES.
pirms 13 gadiem
Sam Hocevar
aa6ce4c34d
easymesh: set the capsule's main axis to Y, not Z.
pirms 13 gadiem
Sam Hocevar
497df444cc
easymesh: add the capsule mesh.
pirms 13 gadiem
Sam Hocevar
4621420316
easymesh: fix the HLSL code in shiny.lolfx.
pirms 13 gadiem
Sam Hocevar
b305986edb
easymesh: use an icosphere instead of an UV-sphere for the sphere primitive.
pirms 13 gadiem
Benjamin ‘Touky’ Huet
0ea021a40a
EasyMesh : Fixed normals on disc when one of the radius == 0
EasyPhysics : Added Cone primitive.
pirms 13 gadiem
Sam Hocevar
782379a86a
easymesh: the light direction is now a uniform variable.
pirms 13 gadiem
Sam Hocevar
8375f3443d
build: fix the PS3 port by using our trig.h everywhere instead of stdlib
functions; also remove a lot of idiotic "using namespace std" from the
codebase.
pirms 13 gadiem
Sam Hocevar
86a16aaff6
easymesh: move the Mesh builder into the engine core.
pirms 13 gadiem