@@ -29,11 +29,11 @@ var _Kernel = function(x,y,z) {
29
29
this . noise = {
30
30
uniform : function ( range_min , range_max ) {
31
31
_glkernel . noise_uniform ( that . kernel , range_min , range_max ) ;
32
- return that . kernel ;
32
+ return that ;
33
33
} ,
34
34
normal : function ( mean , stddev ) {
35
35
_glkernel . noise_normal ( that . kernel , mean , stddev ) ;
36
- return that . kernel ;
36
+ return that ;
37
37
} ,
38
38
gradient : function ( noise_type , octave_type , startFrequency , octaves ) {
39
39
// Defaults
@@ -43,7 +43,7 @@ var _Kernel = function(x,y,z) {
43
43
octaves = ( typeof octaves !== 'undefined' ) ? octaves : 5 ;
44
44
45
45
_glkernel . noise_gradient ( that . kernel , noise_type , octave_type , startFrequency , octaves ) ;
46
- return that . kernel ;
46
+ return that ;
47
47
}
48
48
} ;
49
49
this . sample = {
@@ -52,62 +52,62 @@ var _Kernel = function(x,y,z) {
52
52
num_probes = ( typeof num_probes !== 'undefined' ) ? num_probes : 32 ;
53
53
54
54
_glkernel . sample_poisson_square ( that . kernel , num_probes ) ;
55
- return that . kernel ;
55
+ return that ;
56
56
} ,
57
57
poisson_square : function ( min_dist , num_probes ) {
58
58
// Defaults
59
59
num_probes = ( typeof num_probes !== 'undefined' ) ? num_probes : 32 ;
60
60
61
61
_glkernel . sample_poisson_square1 ( that . kernel , min_dist , num_probes ) ;
62
- return that . kernel ;
62
+ return that ;
63
63
} ,
64
64
stratified : function ( ) {
65
65
_glkernel . sample_stratified ( that . kernel ) ;
66
- return that . kernel ;
66
+ return that ;
67
67
} ,
68
68
hammersley : function ( ) {
69
69
_glkernel . sample_hammersley ( that . kernel ) ;
70
- return that . kernel ;
70
+ return that ;
71
71
} ,
72
72
halton : function ( base1 , base2 ) {
73
73
_glkernel . sample_halton ( that . kernel , base1 , base2 ) ;
74
- return that . kernel ;
74
+ return that ;
75
75
} ,
76
76
hammersley_sphere : function ( type ) {
77
77
// Defaults
78
78
type = ( typeof type !== 'undefined' ) ? type : HemisphereMapping . Uniform ;
79
79
80
80
_glkernel . sample_hammersley_sphere ( that . kernel , type ) ;
81
- return that . kernel ;
81
+ return that ;
82
82
} ,
83
83
halton_sphere : function ( base1 , base2 , type ) {
84
84
// Defaults
85
85
type = ( typeof type !== 'undefined' ) ? type : HemisphereMapping . Uniform ;
86
86
87
87
_glkernel . sample_halton_sphere ( that . kernel , base1 , base2 , type ) ;
88
- return that . kernel ;
88
+ return that ;
89
89
} ,
90
90
best_candidate : function ( num_candidates ) {
91
91
// Defaults
92
92
num_candidates = ( typeof num_candidates !== 'undefined' ) ? num_candidates : 32 ;
93
93
94
94
_glkernel . sample_best_candidate ( that . kernel , num_candidates ) ;
95
- return that . kernel ;
95
+ return that ;
96
96
} ,
97
97
n_rooks : function ( ) {
98
98
_glkernel . sample_n_rooks ( that . kernel ) ;
99
- return that . kernel ;
99
+ return that ;
100
100
} ,
101
101
multi_jittered : function ( correlated ) {
102
102
// Defaults
103
103
correlated = ( typeof correlated !== 'undefined' ) ? correlated : false ;
104
104
105
105
_glkernel . sample_multi_jittered ( that . kernel , correlated ) ;
106
- return that . kernel ;
106
+ return that ;
107
107
} ,
108
108
golden_point_set : function ( ) {
109
109
_glkernel . sample_golden_point_set ( that . kernel ) ;
110
- return that . kernel ;
110
+ return that ;
111
111
}
112
112
} ;
113
113
this . scale = {
@@ -117,13 +117,13 @@ var _Kernel = function(x,y,z) {
117
117
rangeFromUpper = ( typeof rangeFromUpper !== 'undefined' ) ? rangeFromUpper : 1 ;
118
118
119
119
_glkernel . scale_range ( that . kernel , rangeToLower , rangeToUpper , rangeFromLower , rangeFromUpper ) ;
120
- return that . kernel ;
120
+ return that ;
121
121
}
122
122
} ;
123
123
this . sequence = {
124
124
uniform : function ( range_min , range_max ) {
125
125
_glkernel . sequence_uniform ( that . kernel , range_min , range_max ) ;
126
- return that . kernel ;
126
+ return that ;
127
127
}
128
128
} ;
129
129
this . shuffle = {
@@ -135,24 +135,24 @@ var _Kernel = function(x,y,z) {
135
135
permutate_per_bucket = ( typeof permutate_per_bucket !== 'undefined' ) ? permutate_per_bucket : false ;
136
136
137
137
_glkernel . shuffle_bucket_permutate ( that . kernel , subkernel_width , subkernel_height , subkernel_depth , permutate_per_bucket ) ;
138
- return that . kernel ;
138
+ return that ;
139
139
} ,
140
140
bayer : function ( ) {
141
141
_glkernel . shuffle_bayer ( that . kernel ) ;
142
- return that . kernel ;
142
+ return that ;
143
143
} ,
144
144
random : function ( start ) {
145
145
// Defaults
146
146
start = ( typeof start !== 'undefined' ) ? start : 1 ;
147
147
148
148
_glkernel . shuffle_random ( that . kernel , start ) ;
149
- return that . kernel ;
149
+ return that ;
150
150
}
151
151
} ;
152
152
this . sort = {
153
153
distance : function ( origin ) {
154
154
_glkernel . sort_distance ( that . kernel , origin ) ;
155
- return that . kernel ;
155
+ return that ;
156
156
}
157
157
} ;
158
158
} ;
0 commit comments