From 97d40faee9b3ec0c40cbe460a1f60ba713af6b6a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 19 Feb 2008 18:36:50 +0000 Subject: Added an option for texture forcefields to use the root location of a particle for its texture coords. Without this, animating grass would either look like seaweed (with low freq texture) Or the grass would wrinkle up and get kinks (high freq texture) This lets you use a high frequency texture while having straight grass. --- source/blender/makesdna/DNA_object_force.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesdna/DNA_object_force.h') diff --git a/source/blender/makesdna/DNA_object_force.h b/source/blender/makesdna/DNA_object_force.h index c2500fba7fe..cdee50cfef4 100644 --- a/source/blender/makesdna/DNA_object_force.h +++ b/source/blender/makesdna/DNA_object_force.h @@ -163,6 +163,7 @@ typedef struct SoftBody { #define PFIELD_USEMIN 256 #define PFIELD_USEMAXR 512 #define PFIELD_USEMINR 1024 +#define PFIELD_TEX_ROOTCO 2048 /* pd->falloff */ #define PFIELD_FALL_SPHERE 0 -- cgit v1.2.3