File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -42,23 +42,12 @@ pub fn main_attrs(
42
42
) {
43
43
}
44
44
45
- #[ spirv( closest_hit ) ]
45
+ #[ spirv( fragment ) ]
46
46
pub fn main_default ( out : & mut Affine3 ) {
47
47
* out = Affine3 :: default ( ) ;
48
48
}
49
49
50
- #[ spirv( closest_hit) ]
51
- pub fn main_add (
52
- #[ spirv( object_to_world) ] object_to_world : Affine3 ,
53
- #[ spirv( world_to_object) ] world_to_object : Affine3 ,
54
- out : & mut glam:: Vec3 ,
55
- ) {
56
- * out = object_to_world. x
57
- + object_to_world. y
58
- + object_to_world. z
59
- + object_to_world. w
60
- + world_to_object. x
61
- + world_to_object. y
62
- + world_to_object. z
63
- + world_to_object. w ;
50
+ #[ spirv( fragment) ]
51
+ pub fn main_add ( in1 : Affine3 , in2 : Affine3 , out : & mut glam:: Vec3 ) {
52
+ * out = in1. x + in1. y + in1. z + in1. w + in2. x + in2. y + in2. z + in2. w ;
64
53
}
You can’t perform that action at this time.
0 commit comments