1+ use alloc:: { borrow:: Cow , sync:: Arc } ;
12use core:: f32:: { self , consts:: PI } ;
2- use std:: { borrow:: Cow , fs:: canonicalize, mem, sync:: Arc } ;
33
44use bevy_app:: { App , Plugin } ;
5- use bevy_asset:: { Asset , AssetApp , AssetId , Assets , Handle } ;
6- use bevy_color:: { Color , LinearRgba } ;
5+ use bevy_asset:: { Asset , AssetApp , AssetId } ;
76use bevy_ecs:: {
87 resource:: Resource ,
98 system:: { Commands , Res , SystemParamItem } ,
109} ;
11- use bevy_math:: {
12- curve:: { EaseFunction , EasingCurve , Interval } ,
13- ops, Curve , FloatPow , U8Vec3 , Vec3 , Vec4 , VectorSpace ,
14- } ;
10+ use bevy_math:: { ops, Curve , FloatPow , Vec3 , Vec4 } ;
1511use bevy_reflect:: TypePath ;
1612use bevy_render:: {
1713 render_asset:: { PrepareAssetError , RenderAsset , RenderAssetPlugin } ,
@@ -23,7 +19,7 @@ use bevy_render::{
2319 renderer:: { RenderDevice , RenderQueue } ,
2420 RenderApp , RenderStartup ,
2521} ;
26- use smallvec:: { smallvec_inline , SmallVec } ;
22+ use smallvec:: SmallVec ;
2723
2824#[ doc( hidden) ]
2925pub struct ScatteringMediumPlugin ;
@@ -143,13 +139,13 @@ impl ScatteringMedium {
143139 ScatteringTerm {
144140 absorption : Vec3 :: ZERO ,
145141 scattering : Vec3 :: new ( 5.802e-6 , 13.558e-6 , 33.100e-6 ) ,
146- falloff : Falloff :: Exponential { scale : 12.5 } , //TODO: check if matches reference
142+ falloff : Falloff :: Exponential { scale : 12.5 } ,
147143 phase : PhaseFunction :: Rayleigh ,
148144 } ,
149145 ScatteringTerm {
150146 absorption : Vec3 :: splat ( 3.996e-6 ) ,
151147 scattering : Vec3 :: splat ( 0.444e-6 ) ,
152- falloff : Falloff :: Exponential { scale : 83.5 } , //TODO: check if matches reference
148+ falloff : Falloff :: Exponential { scale : 83.5 } ,
153149 phase : PhaseFunction :: Mie { bias : 0.8 } ,
154150 } ,
155151 ScatteringTerm {
0 commit comments