forked from LeenkxTeam/LNXSDK
		
	Add leenkx/Sources/leenkx/logicnode/VolumetricLightSetNode.hx
This commit is contained in:
		
							
								
								
									
										18
									
								
								leenkx/Sources/leenkx/logicnode/VolumetricLightSetNode.hx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								leenkx/Sources/leenkx/logicnode/VolumetricLightSetNode.hx
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,18 @@
 | 
				
			|||||||
 | 
					package leenkx.logicnode;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class VolumetricLightSetNode extends LogicNode {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public function new(tree:LogicTree) {
 | 
				
			||||||
 | 
							super(tree);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						override function run(from:Int) {
 | 
				
			||||||
 | 
					        leenkx.renderpath.Postprocess.volumetric_light_uniforms[0][0] = inputs[1].get().x;
 | 
				
			||||||
 | 
					        leenkx.renderpath.Postprocess.volumetric_light_uniforms[0][1] = inputs[1].get().y;
 | 
				
			||||||
 | 
					        leenkx.renderpath.Postprocess.volumetric_light_uniforms[0][2] = inputs[1].get().z;
 | 
				
			||||||
 | 
					        leenkx.renderpath.Postprocess.volumetric_light_uniforms[1][0] = inputs[2].get();
 | 
				
			||||||
 | 
					        leenkx.renderpath.Postprocess.volumetric_light_uniforms[2][0] = inputs[3].get();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							runOutput(0);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user