Skip to content

WebGPURenderer: AxesHelper fails because LineBasicMaterial is not compatible #29526

Closed
@boytchev

Description

Description

When AxesHelper is used with WebGPURenderer the axes are not rendered. The console shows this message:

NodeMaterial: Material 'LineBasicMaterial' is not compatible.

The issue appears in r168 and r169 in both WebGPU and WebGL2 fallback. In r167 the axes are rendered.

Previous issues with AxesHelper (#26630) and rendering line segments (#28927) are resolved and might be unrelated to this issue.

Reproduction steps

  1. Use WebGPURenderer
  2. Render AxesHelper
  3. The helper is not rendered

Code

import * as THREE from "three";

var renderer = new THREE.WebGPURenderer( ),
    scene    = new THREE.Scene( ),
    camera   = new THREE.PerspectiveCamera( 30, innerWidth / innerHeight );

scene.add( new THREE.AxesHelper( ) );

renderer.renderAsync( scene, camera );

Live example

https://codepen.io/boytchev/pen/WNVQwGX?editors=1011

Screenshots

image

Version

r169

Device

Desktop

Browser

Chrome

OS

Windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions