mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	better fix for NALS facial anims; no more artifacting
This commit is contained in:
		
							parent
							
								
									0f6a37d83b
								
							
						
					
					
						commit
						bc283ec08e
					
				
					 3 changed files with 11 additions and 1 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -71,8 +71,10 @@ namespace Rimworld_Animations
 | 
			
		|||
            {
 | 
			
		||||
                foreach (BaseAnimationOffset offset in offsets)
 | 
			
		||||
                {
 | 
			
		||||
 | 
			
		||||
                    if (offset.appliesToPawn(node.tree.pawn))
 | 
			
		||||
                    {
 | 
			
		||||
                        
 | 
			
		||||
                        //modify offset of prop for animationOffset position
 | 
			
		||||
                        regularOffsets += offset.getOffset(node.tree.pawn) ?? Vector3.zero;
 | 
			
		||||
                        return regularOffsets;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
using System;
 | 
			
		||||
using RimWorld;
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Text;
 | 
			
		||||
| 
						 | 
				
			
			@ -17,9 +18,16 @@ namespace Rimworld_Animations
 | 
			
		|||
                || node.tree.rootNode.children.Any(x => x.AnimationWorker is AnimationWorker_KeyframesExtended))
 | 
			
		||||
            {
 | 
			
		||||
                material.color = Color.clear;
 | 
			
		||||
                material.shader = ShaderTypeDefOf.Transparent.Shader;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public override void TransformLayer(PawnRenderNode node, PawnDrawParms parms, ref float layer)
 | 
			
		||||
        {
 | 
			
		||||
            base.TransformLayer(node, parms, ref layer);
 | 
			
		||||
            layer -= 1000;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue