Skip to content

How to create a Scene.environmentTexture (before engine/scene is initialized) ? #271

Answered by brianzinn
sevaseva asked this question in Q&A
Discussion options

You must be logged in to vote

I got this working:

<Engine antialias adaptToDeviceRatio canvasId="babylon-js">
        <Scene>
          <arcRotateCamera
            name="camera1"
            target={Vector3.Zero()}
            minZ={0.001}
            alpha={0}
            beta={Math.PI / 2}
            radius={5}
            lowerBetaLimit={2}
            upperRadiusLimit={5}
          />
          <hemisphericLight name="light1" intensity={0.9} direction={Vector3.Down()} />
          <sphere name='sphere1' segments={16} diameter={2}>
            <pbrMaterial
              name='pbr'
              albedoColor={new Color3(1, 0.766, 0.336)}
              metallic={1.0}
              roughness={1.0}
              useRo…

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
6 replies
@brianzinn
Comment options

@sevaseva
Comment options

@brianzinn
Comment options

@sevaseva
Comment options

@sevaseva
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@brianzinn
Comment options

@sevaseva
Comment options

@sevaseva
Comment options

Answer selected by sevaseva
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants