File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @davepagurek/glsl-autodiff" ,
3- "version" : " 0.0.14 " ,
3+ "version" : " 0.0.15 " ,
44 "main" : " build/autodiff.js" ,
55 "author" :
" Dave Pagurek <[email protected] >" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -181,8 +181,8 @@ export class Value extends OpLiteral {
181181export class Param extends OpLiteral {
182182 public name : string
183183
184- constructor ( ad : ADBase , name : string ) {
185- super ( ad )
184+ constructor ( ad : ADBase , name : string , ... dependsOn : Op [ ] ) {
185+ super ( ad , ... dependsOn )
186186 this . name = name
187187 this . ad . registerParam ( this , name )
188188 }
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ export class VecElementRef extends Op {
2222 derivative ( param : Param ) { return `${ this . dependsOn [ 0 ] . derivRef ( param ) } .${ this . prop } ` }
2323}
2424
25- export class VecParamElementRef extends OpLiteral {
25+ export class VecParamElementRef extends Param {
2626 public prop : string
2727 public name : string
2828
2929 constructor ( ad : ADBase , prop : string , vec : VecOp ) {
30- super ( ad , vec )
30+ super ( ad , `_glslad_r ${ vec . id } _ ${ prop } ` , vec )
3131 this . prop = prop
3232 this . name = `_glslad_r${ vec . id } _${ prop } `
3333 this . ad . registerParam ( this , this . name )
You can’t perform that action at this time.
0 commit comments