deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

LIGHT_SETTINGS documentation

Open HeiYanjing opened this issue 7 years ago • 4 comments

I find some example.I want to set light parameter const LIGHT_SETTINGS = { lightsPosition: [-0.144528, 49.739968, 8000, -3.807751, 54.104682, 8000], ambientRatio: 0.4, diffuseRatio: 0.6, specularRatio: 0.2, lightsStrength: [0.8, 0.0, 0.8, 0.0], numberOfLights: 2 };

const colorRange = [ [1, 152, 189], [73, 227, 206], [216, 254, 181], [254, 237, 177], [254, 173, 84], [209, 55, 78] `];

const elevationScale = {min: 1, max: 50};

A question. I want to know where is the documentation for light setting ,elevationScale. and the explain for parameters.but in deck.gl documentation . I can't find it .

HeiYanjing avatar Jul 01 '19 10:07 HeiYanjing

Are you after these?

mayteio avatar Jul 01 '19 22:07 mayteio

Are you after these?

Thank you for your reply. I want to know what the parameter ambientRatio,diffuseRatio,specularRatio... means. I want to set light. the documentation of your link don't have it.

HeiYanjing avatar Jul 03 '19 02:07 HeiYanjing

@HeiYanjing The lightSettings prop was an experimental feature on older versions of deck.gl. It has been removed in v7.0.

You can find the latest API in guide to using lighting effect

Pessimistress avatar Jul 03 '19 16:07 Pessimistress

@HeiYanjing The lightSettings prop was an experimental feature on older versions of deck.gl. It has been removed in v7.0.

You can find the latest API in guide to using lighting effect

thank you for your reply . cause the version problem. my version is 6.3.2

HeiYanjing avatar Jul 04 '19 02:07 HeiYanjing