Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Created Readme

  • Loading branch information...
commit fd4703134375ca9444dbe28c0866207388251c72 1 parent eb4d822
@fabianhjr authored
View
2  Engine/object.py
@@ -40,7 +40,7 @@ def update(self):
if self._prop["health"] < 0: del self
# Friccion
- self._prop["vec"] = [i / 1.1 for i in self._prop["vec"]]
+ self._prop["vec"] = [i / 1.5 for i in self._prop["vec"]]
# Fuerzas
for force in self._prop["forces"]:
View
BIN  Engine/object.pyc
Binary file not shown
View
11 README
@@ -0,0 +1,11 @@
+= How to run =
+You need to install Python 2.x and PyOpenGL
+Go to this directory and simply do "python Engine/"
+
+= TODO =
+Fix image shuttering
+Fix Camera and Player object.
+Set the camara to 3rd Person
+Set a skybox
+Create AABB based phyics and generate AABB boxes from .obj files
+Make game
View
4 config.py
@@ -5,5 +5,5 @@
# Aplicación
titulo = "Dubwarfare"
-wAncho = 640
-wAlto = 480
+wAncho = 1280
+wAlto = 720
View
BIN  config.pyc
Binary file not shown
View
6 shaders/vertex.glsl
@@ -1,11 +1,15 @@
void main()
{
+ // Componente Ambiental = Ma * La
+ vec4 cA = gl_FrontMaterial.ambient * gl_LightSource[0].ambient;
+
// Componente Diffuso = Md * Ld * cos(theta)
vec3 nC = normalize(gl_NormalMatrix * gl_Normal);
vec3 pL = vec3(gl_LightSource[0].position);
vec4 eCL= dot(nC, normalize(pL));
vec4 cD = gl_FrontMaterial.diffuse * gl_LightSource[0].diffuse * eCL;
- gl_FrontColor = cD;
+
+ gl_FrontColor = cA + cD;
gl_Position = ftransform();
}
Please sign in to comment.
Something went wrong with that request. Please try again.