Add leenkx/Sources/leenkx/logicnode/VolumetricLightGetNode.hx
This commit is contained in:
		
							
								
								
									
										17
									
								
								leenkx/Sources/leenkx/logicnode/VolumetricLightGetNode.hx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								leenkx/Sources/leenkx/logicnode/VolumetricLightGetNode.hx
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					package leenkx.logicnode;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class VolumetricLightGetNode extends LogicNode {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						public function new(tree:LogicTree) {
 | 
				
			||||||
 | 
							super(tree);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						override function get(from:Int):Dynamic {
 | 
				
			||||||
 | 
							return switch (from) {
 | 
				
			||||||
 | 
								case 0: leenkx.renderpath.Postprocess.volumetric_light_uniforms[0];
 | 
				
			||||||
 | 
								case 1: leenkx.renderpath.Postprocess.volumetric_light_uniforms[1][0];
 | 
				
			||||||
 | 
								case 2: leenkx.renderpath.Postprocess.volumetric_light_uniforms[2][0];
 | 
				
			||||||
 | 
								default: 0.0;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user