Add WebGL compatibility
This commit is contained in:
parent
3725f56c78
commit
1d4980ae28
1 changed files with 567 additions and 212 deletions
|
|
@ -4,7 +4,12 @@ import { LightDrawable } from './light-drawable';
|
|||
|
||||
export class Flashlight extends LightDrawable {
|
||||
public static readonly descriptor: DrawableDescriptor = {
|
||||
uniformName: 'flashlights',
|
||||
propertyUniformMapping: {
|
||||
center: 'flashlightCenters',
|
||||
color: 'flashlightColors',
|
||||
intensity: 'flashlightIntensities',
|
||||
direction: 'flashlightDirections',
|
||||
},
|
||||
uniformCountMacroName: 'FLASHLIGHT_COUNT',
|
||||
shaderCombinationSteps: [0, 1, 2, 4],
|
||||
empty: new Flashlight(
|
||||
|
|
|
|||
Loading…
Reference in a new issue