x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Custom Vertex Attributes

Hi,

is it possible to pass per vertex attributs to a material. like this in glsl:

     //Patch
     layout (location = 0) in vec2 pos;
     layout (location = 1) in vec2 morph;
     //Instance
     layout (location = 2) in int level;
     layout (location = 3) in vec3 a;
     layout (location = 4) in vec3 r;
     layout (location = 5) in vec3 s;
     //Morph calculation
     uniform vec3 camPos;
     uniform float radius;
     uniform float morphRange;
     uniform float distanceLUT[32];
     //Transformation
     uniform mat4 model;
     uniform mat4 viewProj;
     //Height sampling
     uniform sampler2D texHeight;
     uniform sampler2D texHeightDetail;
     uniform sampler2D texDetail2;
     uniform float maxHeight = 10.7f;



Product Version: UE 4.21
Tags:
more ▼

asked Feb 15 '19 at 11:25 AM in Rendering

avatar image

HOUmmel
28 3 8 7

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I found a Solution. I can do the calculations with a ComputeShader. Seems to be best Option :).

more ▼

answered Feb 18 '19 at 11:40 AM

avatar image

HOUmmel
28 3 8 7

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question