tavli

diff src/mesh.h @ 6:a0d30f6f20d4

- texture coordinate generation in class Mesh - wood texture
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 26 Jun 2015 04:22:06 +0300
parents 52e0dd47753b
children b1a195c3ee16
line diff
     1.1 --- a/src/mesh.h	Thu Jun 25 20:43:34 2015 +0300
     1.2 +++ b/src/mesh.h	Fri Jun 26 04:22:06 2015 +0300
     1.3 @@ -220,6 +220,11 @@
     1.4  	 *     If you intend to use it in a speed-critical part of the code, you'll *have* to optimize it!
     1.5  	 */
     1.6  	bool intersect(const Ray &ray, HitPoint *hit = 0) const;
     1.7 +
     1.8 +	// texture coordinate manipulation
     1.9 +	void texcoord_apply_xform(const Matrix4x4 &xform);
    1.10 +	void texcoord_gen_plane(const Vector3 &norm, const Vector3 &tang);
    1.11 +	void texcoord_gen_box();
    1.12  };
    1.13  
    1.14  #endif	// MESH_H_