# Editor.ShaderUpgrade.IsLegacySource

```csharp
static bool IsLegacySource(string text)
```

Whether a shader's text is VFX's (the legacy format): top-level `HEADER`, `MODES`, `VS`, `PS`, ... blocks (`M:Borealis.Slang.ShaderFormat.IsVfxSource(System.String)`).

### Parameters

- `text` (`string`)

### Returns

`bool`

Declared in [Editor.ShaderUpgrade](/api/Editor.ShaderUpgrade).
Assembly: `Sandbox.Tools`.
