12 lines
292 B
Plaintext
12 lines
292 B
Plaintext
#version 450
|
|
#extension GL_GOOGLE_include_directive : require
|
|
layout(local_size_x = 64) in;
|
|
#include "rigid_common.glsl"
|
|
|
|
// Copies the sub-step result back into the body state.
|
|
void main() {
|
|
uint b = gl_GlobalInvocationID.x;
|
|
if (int(b) >= bhdr.x) return;
|
|
bodies[b] = bnext[b];
|
|
}
|