File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,13 +148,12 @@ impl SpecializedMeshPipeline for OutlinePipeline {
148148 if key. msaa ( ) != Msaa :: Off {
149149 fragment_defs. push ( ShaderDefVal :: from ( "MSAA" ) ) ;
150150 }
151- match ( key. pass_type ( ) , key. depth_mode ( ) ) {
152- ( PassType :: Stencil | PassType :: Volume , DepthMode :: Flat ) => {
153- let val = ShaderDefVal :: from ( "FLAT_DEPTH" ) ;
154- vertex_defs. push ( val. clone ( ) ) ;
155- fragment_defs. push ( val) ;
156- }
157- _ => { }
151+ if let ( PassType :: Stencil | PassType :: Volume , DepthMode :: Flat ) =
152+ ( key. pass_type ( ) , key. depth_mode ( ) )
153+ {
154+ let val = ShaderDefVal :: from ( "FLAT_DEPTH" ) ;
155+ vertex_defs. push ( val. clone ( ) ) ;
156+ fragment_defs. push ( val) ;
158157 } ;
159158 let cull_mode = match ( key. pass_type ( ) , key. depth_mode ( ) ) {
160159 ( PassType :: Stencil , DepthMode :: Real ) => Some ( Face :: Back ) ,
You can’t perform that action at this time.
0 commit comments