Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. QMaterial with just a rhi technique
Forum Updated to NodeBB v4.3 + New Features

QMaterial with just a rhi technique

Scheduled Pinned Locked Moved Unsolved Game Development
1 Posts 1 Posters 238 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RGHuertasPaiva
    wrote on last edited by
    #1

    Hello! I'm developing a 3D application and I need to write a custom material. If I write the shaders for opengl 3.3, it works, but if I write it just for RHI, it doesn't work. And I can tell is not my shader. How? well, try this:
    Open the "Simple custom material"(the red square) and in SimpleMaterial.qml comment all the techniques, except the RHI one. You'll see that nothing gets drawn, just the background.

    I really, really would like to write for the RHI, but If I have to write for both ogl3.1 and rhi, makes no sense. Is there anything else i am missing?

    Thanks in advance!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved